If you get 404 page not found error after installation.
RewriteBase /
The .htaccess should look like this:
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
RewriteEngine On RewriteBase /your_sub_folder/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L]
On Dreamhost you have to amend the .htaccess. If you get a “No Input File” error.
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/?$1 [L]
If you get “no input file specified” error on goDaddy web host
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond $1 !\.(gif|jpe?g|png)$ [NC] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] </IfModule>
If you get a 500 Error after the installation try the following as .htaccess
RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|robots\.txt) RewriteRule ^(.*)$ /index.php?/$1 [L]
If you get a 500 Error after the installation try the following as .htaccess
Another
Options +FollowSymLinks RewriteEngine on RewriteRule ^([a-z0-9_-]+)\.html$ index.php/page/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond $1 !^(index\.php|asset|robots\.txt) RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
To remove the .html extension from your urls, you can use the following code in…
Below snippet shows how to redirect a site from non-www to www (or viceversa) and…
Below snippet shows how to redirect a site from non-www to www [crayon-67a5aeccece9f103361439/] or [crayon-67a5aeccecea2101018256/]…
Below shows common redirects using htaccess file. [crayon-67a5aeccecf6a417271074/] The CI .htaccess shouldn't be in the…