Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

External Link Trouble


Guest

Recommended Posts

I'm having an odd problem with making external links. I'm sure it's something simple I'm over looking but thought I would ask for help while I'm still searching the boards.

 

I'm trying to create an external link from one of my images on my main page. The image is located in the header.php file.

 

example of the link I'm using --

 

<a href="www.another-site-to-link-to.com" TARGET=_blank><img src=images/e1.jpg width=145 height=72 border=0></a>

 

The image shows and correctly turns into a link the problem is instead of it linking to www.another-site-to-link-to.com, it's adding the link onto the end of my site. Like www.myoscsite.com/catalog/http://www.another-site-to-link-to.com

 

Can anyone think of what I'm doing wrong?

 

TIA For Any Ideas -- Mindy

Link to comment
Share on other sites

try this:

 

<a href="www.another-site-to-link-to.com" TARGET="NEW"><img src=images/e1.jpg width=145 height=72 border=0></a>

 

Kyle

 

Thanks for the help, though I still can't get it to work.

 

I've added in your change so the line of code inside my header.php file looks like below:

<tr><td colspan=2><a href="www.link-to-external-site.com" TARGET="NEW"><img src=images/e1.jpg width=145 height=72 border=0></a></td></tr>

 

Which displays as, http://www.mysite.com/osc/www.link-to-external-site.com

 

It appears as if my external links are trapped with my osc site url in front of all of them. I've searched the forum and google since noon today and still can't come up with anything that might be the cause or a fix for it. Appreciate any ideas anyone might have.

 

Thanks -- Mindy

Link to comment
Share on other sites

Solved

 

My face is so red.. :blush:

 

After messing with this for the better of 12 hours today it finally works.

I don't know why or how but apparently I was leaving off the http:// part of the link. Once I added this in to the url the external links work perfectly. Sorry for the stupidity posts above.

 

-- Mindy

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...