• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
htaccess and static files

I have the following directory structure:


and this is my .htaccess file:

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|robots\.txt)
RewriteRule ^(.*)$ /appname/index.php/$1 [L]

I have no problem loading pages but no images are loading. I'm getting 404 errors for all contents in the images directory. No problems loading css or js files either.

Anyone got any ideas on why this may be?

What do the img srcs look like in the html compared to the css/js?
Does your images dir have the same permissions and owner/group as the others?

Resolved although I'm not too sure how. It was probably a permissions issue that caused it. I moved the images into a temp folder, deleted the images folder, recreated it and moved the images back in. All working now.

Is that .htaccess file in your appname subfolder? Because it shouldn't work if it's in the root. Just curious.

Hi Aken, yes it was in the appname folder.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.