Jump to content

Can't Linki To An Image


crmamx

Recommended Posts

Trying to link to an image, b1.png, has got me befuddled. Here is my directory.The image is in all 3 files.

 

public_html

1. content

a. pages

2. Pictures_Other

 

This works:

 

http://southalabamar...es_Other/b1.png

 

These get a 404 not found error and I can't figure out why.

 

http://southalabamar.../content/b1.png

http://southalabamar...nt/pages/b1.png

Edited by crmamx
Link to comment
Share on other sites

I don't know what you expect us to do with this. You gave like no information.

 

Do you have the direct links to the image files?

Is there an .htaccess preventing it from directing to the file?

Is your server configured to use the directories you're trying to use?

Link to comment
Share on other sites

Are you saying the image file is all three directories, or you're calling it from html files that are in all three directories and only one of them works?

 

Hi Pikachu, really nice to see you again. I am doing another model airplane site and guess what? I am using the code that you, giz and freakie spent so many hours with me on. This one just gets me.

 

I am trying to call an image from a program with this statement and it works.

 

<a href="http://southalabamarc.com/Pictures_Other/b1.png">

 

Pictures_Other and

content

 

are files in the root directory.

 

pages

Is a file in content

 

I tried showing these in a diagram but couldn’t figure out how to do it in the post.

 

There is an image b1.png located in all three files.

 

Neither one of these statements will work:

 

<a href="http://southalabamarc.com/content/b1.png">
<a href="http://southalabamarc.com/content/pages/b1.png">

 

What I am trying to say is in the statement that works I simply change Pictures_Other to content or content/pages and it will not work.

Edited by crmamx
Link to comment
Share on other sites

That's what I'd expect to happen. The image file only exists in the one location so the path to it should always be the same, regardless of the location of the html file.

<a href="http://southalabamarc.com/Pictures_Other/b1.png">

would be correct to use anywhere.

 

 

Edited by Pikachu2000
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.