Welcome Guest, Not a member yet? Register   Sign In
URI Rewrite and IIS
#1

[eluser]Benjo[/eluser]
Hello,

I'm in the process of migrating a CI application from Apache to IIS and I don't seem to get the IIS equivalent of .htaccess to work. Both are intranets and I would like to be able to go from http://mysite.domain.edu/index.php/home to http://mysite.domain.edu/home.

I'm currently trying to use a solution from HELICON (http://www.helicontech.com/isapi_rewrite/doc/). Here are the contents of the .htaccess and httpd.conf respectively:

.htaccess:
RewriteEngine on
RewriteCond $1 !^(index\.php|jqueryui|tinyMCE|css|images|robots\.txt)
RewriteRule ^(.*)$ /PHC/index.php/$1 [L]

--------------

httpd.conf:
RewriteEngine on
RewriteRule ^([^?]+)\index.php$ $1 [NC,R=301,L]
RewriteCond %{REQUEST_FILENAME}index.php -f
RewriteRule (.*) $1index.php

As I mentioned above, the .htaccess works fine on Apache, but the httpd.conf version does not work on IIS.

I greatly appreciate any help I can get.


Messages In This Thread
URI Rewrite and IIS - by El Forum - 01-20-2011, 10:36 AM
URI Rewrite and IIS - by El Forum - 01-20-2011, 11:08 AM
URI Rewrite and IIS - by El Forum - 01-20-2011, 03:02 PM
URI Rewrite and IIS - by El Forum - 01-20-2011, 04:28 PM
URI Rewrite and IIS - by El Forum - 01-20-2011, 05:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB