.htaccess question: 404 Results from Different Paths on Server vs. Localhost? |
The problem is because of you dont have file .htaccess in xyz or you have but It only works on root directory, please read document guide or search google for creating .htaccess for Codeigniter,
then you will find some articles about creating, configuration for that file, place It in /xyz/ folder, then You have to modify your .htaccess file to run CI from any directory (include subdirectories) FROM: Code: RewriteRule ^(.*)$ /index.php/$1 TO: Code: RewriteRule ^(.*)$ ./index.php/$1 If you follow my instruction then I think you will be ok. Another way is add index.php in your url http://myDomainName/xyz/index.php http://myDomainName/xyz/index.php/controller_name/ http://myDomainName/xyz/index.php/controller_name/action_name http://myDomainName/xyz/index.php/controller_name/action_name/parameters_etc P/S: make sure mod rewrite (htaccess) has been turned on your server. |
Messages In This Thread |
.htaccess question: 404 Results from Different Paths on Server vs. Localhost? - by VikRubenfeld - 08-08-2015, 11:48 AM
RE: .htaccess question: 404 Results from Different Paths on Server vs. Localhost? - by Paradinight - 08-22-2015, 10:54 AM
RE: .htaccess question: 404 Results from Different Paths on Server vs. Localhost? - by VikRubenfeld - 08-22-2015, 11:01 AM
RE: .htaccess question: 404 Results from Different Paths on Server vs. Localhost? - by phplaw - 08-22-2015, 09:48 PM
|