![]() |
404 URL Not Found issues... - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: 404 URL Not Found issues... (/showthread.php?tid=14591) |
404 URL Not Found issues... - El Forum - 01-08-2009 [eluser]ocergyNohtna[/eluser] so I can't get any of my external files to load... i.e. css, js, images, etc... here's my folder structure: /htdocs => root (CI's index.php is in here) /htdocs/commonFrameworks => path for CI (system folder is in here) /htdocs/mysitesdontexist => site's base path (CI's application folder is in here as well as my .htaccess file) /htdocs/mysitesdontexist/js => js files /htdocs/mysitesdontexist/css => css files /htdocs/mysitesdontexist/images => image files now for the contents of files: .htaccess Code: RewriteEngine on index.php Code: <?php and I'm running MAMP on OS X. running apache 2.0.59. php 5.2.6. mysql 5.0.41. and if you'd like to see phpinfo() you can view it here: http://mysites.dontexist.org/info.php navigating to the root of the site, CI loads fine, but my images and css don't load. i just get 404 errors. and navigating directly to an image or css file i get the URL Not Found 404 error page. i feel like this has something to do with CI in general, or the fact that i have the system folder in a different location as normal. i've also set up a test to see if it was .htaccess (and while it still may be, i don't think it is, but by all means, correct me if i'm wrong... %-P) this is what the test looks like. folder structure: /htdocs => root /htdocs/test => this is where .htaccess is, and it's identical to the one above /htdocs/images => an image is in here (sepiame.jpg) if i navigate to /images/sepiame.jpg it loads fine. i have a dyndns account that i'm using to let you all take a look at it it's here: http://mysites.dontexist.org/ which pulls from the /mysitesdontexist folder and http://mysites.dontexist.org/test/ pulls from the /test folder. any assistance is greatly appreciated. if i've left anything out that would be helpful in helping troubleshoot please ask and i'll reply with any info you may need. 404 URL Not Found issues... - El Forum - 01-08-2009 [eluser]meigwilym[/eluser] Try this .htaccess file for size http://codeigniter.com/wiki/mod_rewrite/ Mei 404 URL Not Found issues... - El Forum - 01-08-2009 [eluser]ocergyNohtna[/eluser] no difference. it's pretty much the same that i'm already doing... thanks for the reply though. ![]() 404 URL Not Found issues... - El Forum - 01-08-2009 [eluser]ocergyNohtna[/eluser] so i couldn't find out why this wouldn't work so i took the folder structure back to normal and everything is fine...if anyone can tell me what i'm missing about the setup described i'd love to hear about it. i really would like to have a "common" folder that i utilize multiple sites from...can't figure out where i went wrong. i'm sure i'll tackle it again and prolly have no issues and then wonder what i was smoking today that i couldn't get this to work.... |