Welcome Guest, Not a member yet? Register   Sign In
need help with removing index.php
#4

[eluser]Vlad Balmos[/eluser]
Ok, try this instead:

Remove the following from the .htacces file:
Code:
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
    
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]

and change the uri_protocol to 'auto' in your config file. Maybe the server doesn't populate the Request_uri variable.

if that still doesn't work. Create a virtual host in apache, for example www.localsite.loc (read the apache docs for this), after that add the following lines in your /etc/hosts file:
Code:
127.0.0.1 localsite.loc
127.0.0.1 www.localsite.loc

restart the webserver, modify the base_url in config.php to point to www.localsite.loc
and finally replace .htaccess with this:

Code:
RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} ^localsite.loc [NC]
RewriteRule ^(.*)$ http://www.localsite.loc/$1 [L,R=301]

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


Messages In This Thread
need help with removing index.php - by El Forum - 07-28-2011, 01:16 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:15 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:35 AM
need help with removing index.php - by El Forum - 07-28-2011, 02:45 AM
need help with removing index.php - by El Forum - 07-28-2011, 03:44 AM
need help with removing index.php - by El Forum - 07-28-2011, 03:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB