![]() |
Index.php URL Removal - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Index.php URL Removal (/showthread.php?tid=38673) |
Index.php URL Removal - El Forum - 02-15-2011 [eluser]Unknown[/eluser] Hi, I have installed version 2.0. I have following the .htaccess configuration within the Codigniters userguide to remove the index.php from the URL. But I still get a page error when browsing to the url without /index.php/<pagename>. Any help would be great! Thanks Peter Index.php URL Removal - El Forum - 02-15-2011 [eluser]Rok Biderman[/eluser] Try it with Code: $config['uri_protocol'] = "REQUEST_URI"; Index.php URL Removal - El Forum - 02-16-2011 [eluser]seeraw[/eluser] Hi peterg012, Here is the complete code and you dont need to make changes as $config['uri_protocol'] = "REQUEST_URI"; Keep it AUTO instead rather make change index_page='' in config file, Whats you need to sure that your mod_rewrite should be on change your httpd.conf file setting RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] Thanks, Swapnil |