CodeIgniter Forums
URL Rewrite with Ape Manager - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: URL Rewrite with Ape Manager (/showthread.php?tid=31057)



URL Rewrite with Ape Manager - El Forum - 06-04-2010

[eluser]next2heaven[/eluser]
So I installed the Ape Manager (see here) on my IIS7 server and it's using the .htaccess file below:


Code:
RewriteEngine On

#Removes access to the system folder by users.
#Additionally this will allow you to create a System.php controller,
#previously this would not have been possible.
#'system' can be replaced if you have renamed your system folder.
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^/(.*)$ /index.php?/$1 [L]

#Checks to see if the user is attempting to access a valid file,
#such as an image or css document, if this isn't true it sends the
#request to index.php
RewriteCond C:/Inetpub/vhosts/<mydomain>.com/httpdocs%{REQUEST_FILENAME} !-f
RewriteCond C:/Inetpub/vhosts/<mydomain>.com/httpdocs%{REQUEST_FILENAME} !-d
RewriteRule ^/(.*)$ /index.php?/$1 [L]

(<mydomain> being my domains name obviously)


But i can't seem to get the page working. It works locally and know that the issue is with the rewriting. Any ideas?