Can't remove index.php from the url :/ |
[eluser]sohei[/eluser]
Hi guys, I want to remove the "index.php/" from my url. But when I apply the user guide method (http://ellislab.com/codeigniter/user-gui.../urls.html) with the .htaccess, it don't work. I get an "Internal Server Error". Can anyone help me? Thanks
[eluser]russ_kern[/eluser]
Here is my Basic htaccess file: Code: RewriteEngine on It works well for me.
[eluser]sohei[/eluser]
Shit, it don't work for me . Maybe I have to change anything on my local server? I don't see what
[eluser]LuckyFella73[/eluser]
in config.php did you set: Code: $config['index_page'] = ""; And did you try all possible settings in the line: Code: $config['uri_protocol'] = "AUTO"; Is your site running in a subfolder?
[eluser]mlinuxgada[/eluser]
You can try this: Code: RewriteRule ^(.*)$ /index.php?/$1 [L]
[eluser]atebit[/eluser]
You also need to ensure that your local webserver is configured properly. I am running apache on OS X and had several issues getting this to work. What are you trying to run it on?
[eluser]sohei[/eluser]
Thanks everybody but it's still not working :| Apache is running with WAMP on win7. When I active the rewrite_module, I have no more Internal Server Error. Nice! But all my url redirect me to the localhost source folder.. Mmmhhh i'm getting closer...
[eluser]LuckyFella73[/eluser]
Maybe try this one: Code: // .htaccess And set Code: // config.php Hope that helps ..
[eluser]sohei[/eluser]
Yup, It's ok, the problem came from my local server. Thanks all |
Welcome Guest, Not a member yet? Register Sign In |