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

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

0
SheppardDigital
Asked:
SheppardDigital
  • 2
1 Solution
 
pritamduttCommented:
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
0
 
SheppardDigitalAuthor Commented:
Is this also available for IIS6?
0
 
pritamduttCommented:
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.
0

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