I am making application in codeigniter and now uploading to GoDaddy server but getting 404 error.
My code is like this
$config['index_page'] = "index.php?";
$config['uri_protocol'] = "QUERY_STRING";
.htaccess file is
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L]
I am getting value like
http://yourdomain.com/index.php?controller/action/etc
But i need
http://yourdomain.com/controller/action/etc
Please help.
RewriteRule ^(.*)$ /index.php/$1 [L]http://yourdomain.comin CI do the above thing. If you want to add some exceptions for sayimagesi.e. you don't wanthttp://yourdomain.com/images/image.pngto follow above rule, put this just above it - ` RewriteCond $1 !^(index\.php|images)`