How to remove index.php from URL |
[eluser]ebrahimthex[/eluser]
How can i remove index.php in my LAMP Server. This works: http://localhost/mysite.com/index.php/home But this generates 404 errors: http://localhost/mysite.com/home Code: <VirtualHost *:80> and this is my .htaccess in /var/www/russelhost/ Code: RewriteEngine on Code: $config['index_page'] = “index.php” by $config['index_page'] = “” Now What Can i do?
[eluser]ebrahimthex[/eluser]
How can i remove index.php in Codeigniter URL? USE LAMP Server. This works: http://localhost/mysite.com/index.php/home But this generates 404 errors: http://localhost/mysite.com/home Code: <VirtualHost *:80> and this is my .htaccess in /var/www/russelhost/ Code: RewriteEngine on Code: $config['index_page'] = “index.php” by $config['index_page'] = “” Now What Can i do?[/quote]
[eluser]Unknown[/eluser]
Hey Guys my name is Mark.According to that topic well i think that if you want to remove index.php from URL then you should use that coding for that purpose: RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.php\ HTTP/ RewriteRule ^(([^/]+/)*)index\.php$ http://www.%{HTTP_HOST}/ [R=301,NS,L] |
Welcome Guest, Not a member yet? Register Sign In |