PDA

View Full Version : Wrong global href when "www" is not in the page address



szenti
Aug 13th, 2009, 01:07 PM
Hi,
I have this in my code:
[ICODE] <a href='"https://www.promda.com/Promda.php?>Enter</a>
The link works fine if the page (which includes this code) is addressed in the web browser like this: www.promda.com
But, it gives wrong reference if the page is addresses without "www", like this: http://promda.com
In this case the link changes from global https://www.promda.com/Promda.php? to this: http://promda.hu/https://www.promda.hu/Promda.php?
What can be the problem?

abduraooft
Aug 13th, 2009, 01:17 PM
Your html source for that link at http://promda.com/ looks like

<a href="../httpsdocs/Promda.php?Language=HU">Bel�p�s</a>
Don't you just need
<a href="/Promda.php?Language=HU">Bel�p�s</a> in all case?

szenti
Aug 13th, 2009, 01:20 PM
Oh, sorry guys, I found the error.... was coding problem before this link...

szenti
Aug 13th, 2009, 01:23 PM
Thanks Abduraooft!