Welcome Guest, Not a member yet? Register   Sign In
Index.php URL Removal
#1

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

[eluser]Rok Biderman[/eluser]
Try it with
Code:
$config['uri_protocol'] = "REQUEST_URI";
in config/config.php
#3

[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




Theme © iAndrew 2016 - Forum software by © MyBB