problem with .htaccess an DOCUMENT_ROOT |
[eluser]dexter21[/eluser]
Hi, i've recently finished a project with ci. Now i want to redirect with .htaccess . my phpinfo said that i've load mod_rewrite module. My DOCUMENT_ROOT is /usr/clients and the project is in /usr/clients/client1 . i put a .htaccess file with following content in /usr/clients/client1/ Code: RewriteEngine on but when i call to http://myserver/client1/contact.html i get Not Found The requested URL /client1/contact.html was not found on this server. and dont get error of .htaccess file. any help plz?
[eluser]parrots[/eluser]
Try this: Code: RewriteEngine on RewriteBase is helpful when you're not running in the root of a domain. Also make sure in config.php you've set $config['index_page'] to "" and $config['url_suffix'] to ".html" (since it looks like you want all your pages to have the extension .html).
[eluser]exit[/eluser]
This should work: Code: RewriteEngine on |
Welcome Guest, Not a member yet? Register Sign In |