Welcome Guest, Not a member yet? Register   Sign In
Not working CI3 on server
#1

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

Attached Files Thumbnail(s)
   
Reply
#2

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
Reply
#3

Some servers need a ? after index.php

RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
Reply




Theme © iAndrew 2016 - Forum software by © MyBB