EllisLab text mark
Advanced Search
     
can not remove index.php in IIS hosting (ISAPI) server
Posted: 21 March 2012 10:00 AM
Joined: 2012-01-19
28 posts

Hi Brothers,

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

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

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

 
Posted: 21 March 2012 06:15 PM   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2010-04-09
49 posts

Did you set up the URL Rewriting in IIS? You can import the rules from the .htaccess file.

 
Posted: 22 March 2012 07:45 AM   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-01-19
28 posts

yes i used .htaccess file its working fine in apache server but its not working in IIS server.

 
Posted: 22 March 2012 08:00 AM   [ # 3 ]   [ Rating: 0 ]
Avatar
Joined: 2010-04-09
49 posts

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/

 
Posted: 22 March 2012 08:00 AM   [ # 4 ]   [ Rating: 0 ]
Joined: 2011-02-23
882 posts

Does your hosting server allow using .htaccess files? If not you won’t be able to get it working wink

 Signature 

ignited Community Framework (WiP)  |  Read the User’s Guide. It won’t bite.

STOP! Before posting your questions, remember the WWW Golden rule:
What did you try? What did you get? What did you expect to get?

CI example .htaccess

 
Posted: 22 March 2012 08:35 AM   [ # 5 ]   [ Rating: 0 ]
Joined: 2012-01-19
28 posts

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]

 
Posted: 22 March 2012 08:40 AM   [ # 6 ]   [ Rating: 0 ]
Avatar
Joined: 2010-04-09
49 posts

Please read the section “Convert mod_rewrite Rules” in the link that I posted above. It explains how to import .htaccess to IIS.

 
Posted: 22 March 2012 08:58 AM   [ # 7 ]   [ Rating: 0 ]
Joined: 2012-01-19
28 posts

“Convert mod_rewrite Rules”, this is explain in localhost, but i need “Convert mod_rewrite Rules” in my hosting server, plz help me.