PDA

View Full Version : Double URL???



joannapo
10-21-2009, 11:55 AM
Hi,

I've been linking all the pages to the menu on my web page.

The problem I have is that on my subdomain all the links at the top of the page, for some reason, end up doubling the address - therefore missing the intended destination.

I've checked the HTML code and the addresses there all show up singularly (correctly!), but when I click on them online they double. For example:

"www.en.joannaporter.com/index_en.html" becomes:

"www.en.joannaporter.com/www.en.joannaporter.com/index_en.html"

and, "www.en.joannaporter.com/faq_en.html" becomes:

"www.en.joannaporter.com/www.en.joannaporter.com/faq_en.html"

Can anyone help with this at all? I've check the validation of each page using W3C and they all pass without error.

Thanks!

felgall
10-21-2009, 12:22 PM
Change

"www.en.joannaporter.com/index_en.html"

to either

"index_en.html"

or

"http://www.en.joannaporter.com/index_en.html"

The first alternative is the better one as it provides a faster lookup.

joannapo
10-21-2009, 01:47 PM
Change

"www.en.joannaporter.com/index_en.html"

to either

"index_en.html"

or

"http://www.en.joannaporter.com/index_en.html"

The first alternative is the better one as it provides a faster lookup.

Thanks, that works perfectly! But, as one problem disappears another takes its place! I have two images on each page (Union Jack and Spanish Flag), with the idea being that you can switch between the two languages.

I've got the link working perfectly going from English to Spanish, but going the other way creates a similar problem to the above.

The link I've set up is for:

<a href="www.en.joannaporter.com/index_en.html"><img
src="flags/eng.jpg" alt="English language" align="right"
height="15" width="25" /></a>

The problem is that when it's live on the page it changes to: "www.joannaporter.com/www.en.joannaporter.com/index_en.html""

I've tried using the above suggestions to see if they work, but neither have. Any suggestions for this?

Thanks

djmatt
10-24-2009, 07:14 PM
<a href="www.en.joannaporter.com/index_en.html"><img
src="flags/eng.jpg" alt="English language" align="right"
height="15" width="25" /></a>


try:
<a href="index_en.html"><img
src="flags/eng.jpg" alt="English language" align="right"
height="15" width="25" /></a>