Forum Moderators: phranque

Message Too Old, No Replies

A folder name does not work for loading images from it?

         

thosecars82

10:15 pm on Oct 10, 2008 (gmt 0)

10+ Year Member



Hello you guys
This problem is driving me mad. I do not find any reasonable explanation for it. It turns out that I have just realized that a page of a site does not load their images successfully. Then I have just realized that if I rename the folder in which those images are to any other different name(I have tested with several names including slight modifications of the original one successfully), then the images are loaded successfully. You can imagine the time I have spent until get that conclusion. But after all, for what? Because I still am even more intrigued. I mean, why a php page with img html tags might have a problem with a particular name of the folder in which the loaded images are? I do not stop surprising myself with new things that apparently have no explanation.
Thanks

encyclo

10:41 pm on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Was the folder called "icons"?

Often Apache is set up with certain directory names as aliases to content kept outside the document root. Frequently, /icons/ is used as an alias:

[httpd.apache.org...]

thosecars82

11:24 pm on Oct 10, 2008 (gmt 0)

10+ Year Member



no, the name was imagenesclases. But I have just tested with different names and I have come up with the conclusion that any string which ends in the string clases, that is to say, matching this regular expression: ^.*clases$
will not be a valid name for storing the images I want to load. It so weird, may be it is because of some default alias that apache might have.
But no idea so far.
Thanks

encyclo

11:37 pm on Oct 10, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are a couple of other explanations: you might have a rewrite rule which is interfering with the access to the directory. Another option is that you are running ad-blocking software in your browser(s) which is blocking access to URLs containing the specific string.

thosecars82

12:10 am on Oct 11, 2008 (gmt 0)

10+ Year Member



Ok, now I realized that the css files do not work properly in my hosting company's server because the site is displayed without css, that is to say a mess. However, I can see the site displayed properly with the information from the css files in my local installation. So, why is this happening? Another problem added is that I am using dreamweaver to synchronize. The problem is that now when I synchronize with dreamweaver 8 I just see blank spaces in the corresponding entries of the synchronization window in which the names of the files should appear.
Thank you.

thosecars82

12:19 am on Oct 11, 2008 (gmt 0)

10+ Year Member



Ok, the css files now work in the server. The cause of not using the css information was that I had placed a .htaccess test tile inside the same folder as the css files and it had a directive to avoid access to that server. However I did not have that .htaccess file locally so it was working here. I realized of this by using the files manager from the web from my hosting company because the synchronization I can do now in the conditions I told you in the previous post is quite bad and did not let me notice that this .htaccess file was interfering for the css information.
Thanks though