Welcome Guest, Not a member yet? Register   Sign In
How to eliminate index.php in url?
#1

[eluser]inktri[/eluser]
I'm using an .htaccess to have all http://localhost/controller/function utilize http://localhost/index.php/controller/function

Quote:RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

HOWEVER, clicking on any link or submitting a form in any view redirects to the url with the index.php. How can I eliminate index.php's in these scenarios?

Thanks for the help
#2

[eluser]esra[/eluser]
There is an article posted on the wiki. The recommended .htacess does not work for all users, so you may need to do a forum search to find alternate solutions.
#3

[eluser]garymardell[/eluser]
In the config file, where it says 'index.php' can't remember what option it is but change it to just '' (so blank)
#4

[eluser]inktri[/eluser]
thanks that worked
#5

[eluser]codeamanny[/eluser]
bump this should be added to documentation




Theme © iAndrew 2016 - Forum software by © MyBB