CodeIgniter Forums
can not remove index.php in IIS hosting (ISAPI) server - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: can not remove index.php in IIS hosting (ISAPI) server (/showthread.php?tid=50286)



can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-21-2012

[eluser]Dhanapal MCA[/eluser]
Hi Brothers,

my website working fine in apache server, but my hosting server is IIS, (ISAPI) server,
i can't remove index.php.

www.mysite.com/index.php/blog/ - is working fine in IIS hosting server.

www.mysite.com/blog - is not working, in IIS hosting server, will u plz help me.




can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-21-2012

[eluser]Akinzekeel[/eluser]
Did you set up the URL Rewriting in IIS? You can import the rules from the .htaccess file.


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]Dhanapal MCA[/eluser]
yes i used .htaccess file its working fine in apache server but its not working in IIS server.


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]Akinzekeel[/eluser]
What do you mean by "used .htaccess", did you *import* it? IIS does not use .htaccess files, they will only work with Apache.

Take a look at this walkthrough about IIS URL Rewrite: http://learn.iis.net/page.aspx/470/importing-apache-modrewrite-rules/


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]PhilTem[/eluser]
Does your hosting server allow using .htaccess files? If not you won't be able to get it working Wink


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]Dhanapal MCA[/eluser]
yes, how to import .htaccess in my hosting server, only i upload .htaccess file in my hosting server, but its not working fine,

and this is my .htaccess file:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /mysite/index.php/$1 [L]


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]Akinzekeel[/eluser]
Please read the section "Convert mod_rewrite Rules" in the link that I posted above. It explains how to import .htaccess to IIS.


can not remove index.php in IIS hosting (ISAPI) server - El Forum - 03-22-2012

[eluser]Dhanapal MCA[/eluser]
"Convert mod_rewrite Rules", this is explain in localhost, but i need "Convert mod_rewrite Rules" in my hosting server, plz help me.