Micronovae
Home Products Downloads Purchase Support Company
Overview Documentation Download Purchase FAQ
 
IIS Mod-Rewrite

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:

  IIS Mod-Rewrite

Download IIS Mod-Rewrite

Purchase IIS Mod-Rewrite
  1. Install PHP following the vendor's instructions.

  2. Install MySQL Server following the vendor's instructions.

  3. Install IIS Mod-Rewrite Pro (download).

  4. 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.

  5. Install MODx according to the vendor's instructions.

  6. 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

  7. Open the ".htaccess" file with a text editor and uncomment the directive "RewriteBase /", so that it looks as follows:

    #RewriteBase /

  8. 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.