It is working with me in slightly diffrent way but almost same as posted by Aaron, Thanks for the post Aaron.
The way i worked is:
IIS7, ISAPI Rewrite 3 Lite, 404, 405
--------------------------------
1- Installed ISAPI Rewrite 3 Lite on IIS7 (Refer to the relevant installation notes)
2- in my case i have redirected the 404/405 error pages to index.php
3- Open ISAPI Rewrite 3 Lite installation folder (in my case i have installed in C:\Program Files\Helicon\ISAPI_Rewrite)
4- Open httpd.ini and copy and paste the following code (provided in the post:
http://modxcms.com/forums/index.php/topic,10915.msg81058.html#msg81058)
Code:
[ISAPI_Rewrite]
# 3600 = 1 hour
CacheClockRate 3600
RepeatLimit 32
# Block external access to the httpd.ini and httpd.parse.errors files
RewriteRule /httpd(?:\.ini|\.parse\.errors).* / [F,I,O]
# Block external access to the Helper ISAPI Extension
RewriteRule .*\.isrwhlp / [F,I,O]
RewriteEngine On
RewriteCond Method GET|HEAD
RewriteRule /(?!(?:manager|assets)/)(.*)\.html(?:\?(.*))? /index.php?q=$1?2&$2: [I,L,U]
5- Save this file, if you can’t save the file and get error then Go into httpd.ini file Properties and UNCHECK from Readonly and then save.
6- Now Log into MODx manager -> Click Administration -> System Configuration -> Friendly URL Settings
My Settings are:
Use Friendly URLS = yes
Prefix for friendly URLS =
Suffic for friendly URLS = .html
This is what i have done and its working now. Remember Modx installation is in root folder wwwroot.
I have done this using the help of this post :
http://modxcms.com/forums/index.php/topic,10915.msg81058.html#msg81058 by Aaron Wardle. Thanks Aaron.
Regards,
Sami