|
|
|

Friendly URLs for MODx on IIS using .htaccess
5 Mar 2008
This article describes a detailed, step-by-step guide for enabling Friendly URLs on MODx on IIS web server
This solution requires IIS Mod-Rewrite Pro and IIS 6.0 or later, and it is tested with MODx 0.9.6, PHP 5.2.4, and MySQL 5.0.24.
To enable Friendly URLs on MODx on IIS, follow these steps:
|
|


|
- Install PHP following the vendor's instructions.
- Install MySQL Server following the vendor's instructions.
- Install IIS Mod-Rewrite Pro (download).
- If on production environment, activate IIS Mod-Rewrite using a valid license key. If activation is skipped, IIS Mod-Rewrite will work in test mode and you will need to restart IIS every 30 minutes or 1000 requests, if your testing exceeds these limits.
- Install MODx according to the vendor's instructions.
- Locate the file "ht.access" in MODx root directory and rename it to ".htaccess". Since Windows Explorer will not accept the file name ".htaccess", open a command prompt window (cmd.exe), change directory (cd) to MODx root, and run the following command:
rename ht.access .htaccess
- Open the ".htaccess" file with a text editor and uncomment the directive "RewriteBase /", so that it looks as follows:
#RewriteBase /
- Log on to MODx as administrator, go to admin panel, and open the Tools > Configuration > Friendly URLs page. Set the field "Use friendly URLs" to "Yes" and save the changes.
After, completing all the steps above, your MODx installation will fully serve Search Engine Friendly URLs, and your website's SEO will be drastically improved.
|
|
| |
|
|