Link to home
Start Free TrialLog in
Avatar of SheppardDigital
SheppardDigital

asked on

Sending all requests to index.php using IIS

Hi,

We've developed a CMS that uses a .htaccess file to redirect all requests to an index.php file so that we can create SEO friendly urls.

One of our clients wants us to host the CMS on their own server which is running IIS, the problem is, the CMS is developed for Apache.

I'm just wondering if anyone knows how we can redirect all requests (apart from files that exist) to index.php

I've attached the .htaccess file we're using.
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php?rt=$1 [L,QSA]

Open in new window

Avatar of pritamdutt
pritamdutt
Flag of India image

You could use URL Rewrite Rule Module for achieving similar results.

Further information on Rewrite Rule Module can be found at the following URL

http://www.iis.net/download/urlrewrite
Avatar of SheppardDigital
SheppardDigital

ASKER

Is this also available for IIS6?
ASKER CERTIFIED SOLUTION
Avatar of pritamdutt
pritamdutt
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial