• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 275
  • Last Modified:

Sending all requests to index.php using IIS


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

  • 2
1 Solution
You could use URL Rewrite Rule Module for achieving similar results.

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

SheppardDigitalAuthor Commented:
Is this also available for IIS6?
No this is available for IIS 7 only.

However, in case you want to target IIS6 I would suggest you to visit http://iirf.codeplex.com/  for (Ionic's Isapi Rewrite Filter).

Hope this helps.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now