This is new to me. I am transferring the site that I made in codeigniter to the godaddy hosting site server. I can go to the homepage:
http:
But when I try to go to other pages, for example:
http://www.example.com/about-us/
It gives me this error message:
Not found
The requested URL / example / index.php / about-us / was not found on this server.
In addition, when trying to use ErrorDocument to process a request, a 404 Not Found error was detected.
If I use:
http://www.example.com/index.php/about-us/
The page looks as clear as day.
I was looking for a way to bypass CI, but my site has more static pages and then dynamic pages.
All in all, my question is what am I doing wrong and does this have anything to do with having a godaddy hosting account?
.htaccess
RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA]
CI configuration file
$config['base_url'] = ''; $config['index_page'] = ''; $config['uri_protocol'] = 'QUERY_STRING';
CI startup file
$autoload['helper'] = array('url');
Update from 09-30-2011:
In .htaccess use:
# Options Options -Multiviews Options +FollowSymLinks
In the CI configuration file:
$config['index_page'] = ""; $config['uri_protocol'] = "AUTO";
Source: codeigniter.com/wiki/Godaddy_Installaton_Tips