Jump to content

Unable to link to directory files


Cygnus

Recommended Posts

Hi everyone

 

I'm trying to build my first website(s), but I'm having a serious problem. I cannot link any files in my public directory to my web pages. I asked about this problem in the web host help forum but they have not yet helped me resolve the issue. I followed the web host staff's suggestions but the problem remains.

 

I have mostly been using a Frontpage extension to build my sites, rather than FTP, because for one thing, I can't seem to open and edit the page templates with FileZilla, and I want to play with the code and quickly see the changes in my browser. It was suggested this may cause problems and I should first try reinstalling Frontpage. I did that but it fixed nothing.

 

Next I was told an .htaccess file was probably the culprit, but I have no understanding of .htaccess files or the RewriteCond and RewriteRule. I tried renaming the .htaccess file to .htaccess.bak, via FTP, as per the staff suggestion, but that did not help.

 

The web host staff looked in my directory and found the images folder permissions were set to 644. He then changed that to 755, and I was thrilled to see that images in my directory were now appearing on my pages. Unfortunately, several hours later they all suddenly disappeared. All I did was change the name of one image/file path in one page's html document, using Frontpage. When I clicked save, all images on every page vanished! The folder permissions are still set to 755, so I have no idea what went wrong.

 

Please look at my site and tell me what you think. If you view this page: http://mysticalswan.com/ms1.html'>http://mysticalswan.com/ms1.html using IE browser you can see there are 2 images the page links to, but they are not visible in the browser. Firefox does not seem to recognize any missing elements, or it simply ignores them. This is simply a test template, btw. I don't know anything about css... and I'm trying to learn.

 

Here's what it says in my error log: [crit] [client 24.30.23.213] (13)Permission denied: /home/shadow/public_html/mysticalswan.com/images/.htaccess pcfg_openfile: unable to check htaccess file

 

[Mon Feb 01 05:35:06 2010] [error] [client 24.30.23.213] File does not exist: /home/shadow/public_html/mysticalswan.com/403.shtml, referer: http://mysticalswan.com/

 

I currently have 3 sites hosted by the same web host, and this same problem is occurring on all three sites. I asked their staff if maybe a server bug could be the problem, but they have yet to answer that question. Please, if you have any advice I would greatly appreciate it. This is a major obstacle in building my sites. Thank you!

Link to comment
Share on other sites

Well, I noticed that this line is invalid:

 


 

It should be (it has an unnecessary ">

 


 

In regard to your "(13)Permission denied: /home/shadow/public_html/mysticalswan.com/images/.htaccess pcfg_openfile: unable to check htaccess file" error, that sounds like you should make sure there is a .htaccess available. Rather than renaming it to ".htaccess.bak" I'd just open up the file and make sure it doesn't contain any contents.

Link to comment
Share on other sites

Well, I noticed that this line is invalid:

 


 

It should be (it has an unnecessary "> <" in the middle of the img code):

 


 

In regard to your "(13)Permission denied: /home/shadow/public_html/mysticalswan.com/images/.htaccess pcfg_openfile: unable to check htaccess file" error, that sounds like you should make sure there is a .htaccess available. Rather than renaming it to ".htaccess.bak" I'd just open up the file and make sure it doesn't contain any contents.

 

Thanks for the reply, but I don't fully understand your suggestion. Yes, there is an .htaccess file in my public directory, with permissions set to 644. I opened it via FTP and yes there are contents. Are you saying I should delete all the contents and save the blank file? I tried that but it changed nothing.

 

I've created a very basic html page with links to 3 images in my directory, to simplify things. http://mysticalswan.com/testpage.html Does anyone see any images on that page?

 

This is bizarre. I can save the *missing* images on that page into a folder on my PC. The files are there, and browsers recognize that, but can't read them. The individual file permissions are all 644. The image folder they're in is set to 755. Nothing in my directory is protected, as far as I know. And when I visit the file urls, ex: http://mysticalswan.com/images/gold_hamsa.jpg ...the images are visible.. sometimes. Other times I get a 404 error. But they're not visible on the web page. What the heck??

 

I feel like this problem may be somehow related to the Frontpage editor. Earlier I uninstalled Frontpage completely and my entire site vanished. All I got was a 403 error page. After reinstalling FP, my site reappeared. Is it possible Frontpage is writing incorrect .htaccess files?

 

As for the invalid line you pointed out, thanks and I've corrected it.

Edited by Cygnus
Link to comment
Share on other sites

I've created a very basic html page with links to 3 images in my directory, to simplify things. http://mysticalswan.com/testpage.html Does anyone see any images on that page?

I'm not seeing any images... though the image links seem to be valid and I can view the image files if I type in the full file name directly. I really don't know on this one.

 

Your best bet may be to avoid using Frontpage. It's pretty much universally hated by web designers, since it often produces unnecessary code or code that doesn't work on a variety of browsers. Frankly, you'd probably be better off with just a regular text editor.

Link to comment
Share on other sites

It did for me but I wonder if his host is not allowing image download for non-www links?

 

This site: http://tutek.com/ is supposedly hosted by the same host I'm using; Arvixe. As you can see, his images appear just fine without any www in the url or file paths, so that doesn't seem to be the problem.

 

Btw, I have 3 domains and several subdomains ie; wordpress blog, coppermine gallery etc. all hosted at Arvixe. No images I've uploaded to any of those directories are visible. Seems like one single glitch is blocking all my files from being downloaded.

 

I'm baffled guys. Any more suggestions? Please!

Edited by Cygnus
Link to comment
Share on other sites

It did for me but I wonder if his host is not allowing image download for non-www links?

 

This site: http://tutek.com/ is supposedly hosted by the same host I'm using; Arvixe. As you can see' date=' his images appear just fine without any www in the url or file paths, so that doesn't seem to be the problem.

 

Btw, I have 3 domains and several subdomains ie; wordpress blog, coppermine gallery etc. all hosted at Arvixe. No images I've uploaded to any of those directories are visible. Seems like one single glitch is blocking all my files from being downloaded.

 

I'm baffled guys. Any more suggestions? Please![/quote']

 

Look at the url again. The one that is working has a relative link whereas the one that doesn't work uses absolute (i.e. http://)

 

So you might try using the relative path intead.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...