How to cope if successful in localhost but when there is an error in hosting 404? |
Pleas hepl me!!
when I try on localhost already successfully but when I was hosting an error 404, when I had to replace base_url with my domain.
Try to this config setting:
$config['base_url'] = '' $config['index_page'] = ''; And this .htaccess file in your document root RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L]
this for code config.php http://pastebin.com/Za5V4ar9 and this code .htaccess
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]
|
Welcome Guest, Not a member yet? Register Sign In |