problem: index.php still exist in after modifying .htaccess |
[eluser]Alpha[/eluser]
My .htaccess is RewriteEngine on RewriteCond $1 !^(index\.php|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] but the controller still returns http://www.example.com/index.php/welcome.html .htaccess is located with application folder, system folder and ci main index.php welcome controller is in application->controllers folder tnx
[eluser]jzmwebdevelopement[/eluser]
Have you adjusted the following config line in the config.php document? Code: $config['index_page'] = '""; The above should have index.php removed from the ""
[eluser]Alpha[/eluser]
i've $config['index_page'] = ''; but my controllers will not work without index.php at the url
[eluser]jzmwebdevelopement[/eluser]
Try: Code: # Customized error messages.
[eluser]Alpha[/eluser]
controllers will still not work without index.php in url
[eluser]Sheldon[/eluser]
Are you sure your server supports the use of a .htaccess file ? If its a windows IIS server or on some shared servers your host my not allow them wit out contacting them and directly asking to be allowed to use it. Also, on OSX servers they are not enabled by default. You will need to edit your httpd.conf file.
[eluser]InsiteFX[/eluser]
Try changing this in your application/config/config.php file. Code: /* InsiteFX
[eluser]Alpha[/eluser]
still no RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L] i know part of this code work since access to image directory is allowed including the index.php & robots.txt
[eluser]tomas[/eluser]
try to change your .htaccess to Code: deny from all and you don't get a 403 error, it means that the server is set not to allow .htaccess overrides - this needs to be changed in the server's configuration - look for the line Code: AllowOverride None Code: AllowOverride All |
Welcome Guest, Not a member yet? Register Sign In |