PDA

View Full Version : "Image" folders not working due to .htaccess file


hoangism
06-13-2006, 09:18 PM
So I've been installing some php mods to add onto the HumorSoftware and have noticed that any folder with the name "images" doesn't load up. It takes you to a 404 error page as if the images are on the server at all. Once the .htaccess file is deleted, the images show up without any problems. I think it might be a problem with the coding or just .htaccess file. Any fix to this? Is it a known bug?

Yze
06-13-2006, 09:23 PM
Ya, I noticed this bug also.. well not quite a bug but, the htaccess has the following bit of lines in the code:

RewriteRule "!^(images|thumbnails|files)" - [C]
RewriteRule "(images|thumbnails|files)(/[^/]+)" $1$2 [Last]

Since the folder name is 'images' and that is being called, htaccess will think its the one that is in the above coding. Best thing to do is to rename your name 'images' folder to something like 'site_images' or something..

The biggest problem I see in this however is that a lot of other scripts out there may have code calling their own 'images' folder..

Any way to get the main images folder renamed for the htaccess and entire script Ryan?

hoangism
06-13-2006, 09:28 PM
Tried it out by rewritting "images" to "hs_images" in the .htaccess file. The site doesn't crash or have any errors, so far. Plus, the images in any "image" folder now loads up. Thanks Yze!

Ryan
06-14-2006, 05:22 PM
I'll look into this...

Yze
12-06-2006, 06:25 PM
this is still an issue