Welcome Guest, Not a member yet? Register   Sign In
can not remove index.php in IIS hosting (ISAPI) server
#1

[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.

#2

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

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

[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/impor...ite-rules/
#5

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

[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]
#7

[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.
#8

[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.





Theme © iAndrew 2016 - Forum software by © MyBB