Hide index.php from URL |
[eluser]ibnclaudius[/eluser]
My website: http://ibnight.com When trying to access an event in my website by: http://ibnight.com/1 I get a not found error: Quote:The requested URL /1 was not found on this server. Works only if I access it with the index.php in url, like: http://ibnight.com/index.php/1 My controller is something like: Code: class Events extends CI_Controller { My routing: Code: $route['default_controller'] = 'events'; My config: Code: $config['index_page'] = ''; My .htaccess: Code: RewriteEngine on
[eluser]ibnclaudius[/eluser]
I've also tried: Code: RewriteEngine On But the error persists...
[eluser]TheFuzzy0ne[/eluser]
Try replacing this: Code: RewriteRule ^(.*)$ index.php/$1 [L] with this: Code: RewriteRule ^(.*)$ index.php?/$1 [L] or this: Code: RewriteRule ^(.*)$ /index.php?/$1 [L] |
Welcome Guest, Not a member yet? Register Sign In |