Not working CI3 on server |
I have problem with CI 3.0 when i upload on web server (inmotionhosting.com and godaddy.com hosting). i got "404 Page Not Found" error.
i have create a sub folder on root directory for example http://example .com/mylatestcisite/ i have also checked on .htaccess file my .htaccess code here: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L] but on localhost working good. Please help me what the issue. --- Regards Joe
Hi,
If you deployed on a sub-directory, defined a base on .htaccess Example: RewriteBase /mylatestcisite/ RewriteCond $1 !^(index.php|resources|robots.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L,QSA] Thanks
Some servers need a ? after index.php
RewriteRule ^(.*)$ index.php?/$1 [L,QSA] |
Welcome Guest, Not a member yet? Register Sign In |