random1 Posted March 3, 2008 Posted March 3, 2008 Hi, I create a new link in the system say: www.example.com and then save it. I then load the page and instead of having the link to www.example.com it links to www.mywebsiteaddress.com/www.example.com instead. How can I create a link to a link that is not on my domain?
germ Posted March 3, 2008 Posted March 3, 2008 Use HTML ONLY! If you're using a PHP program on your site to generate links, that would explain why it tacks your URL on. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
random1 Posted March 3, 2008 Author Posted March 3, 2008 Thanks but I am using the following HTML code and it does the same. <p class="MsoNormal"> <a href="www.investorwords.com" target="_blank">www.investorwords.com</a> </p> <p class="MsoNormal">x </p> That code creates the link: www.mysite.com/www.investorwords.com
germ Posted March 3, 2008 Posted March 3, 2008 Try this: <p class="MsoNormal"> <a href="http://www.investorwords.com" target="_blank">www.investorwords.com</a> </p> <p class="MsoNormal">x </p> Looks like it's using your <base href...> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
random1 Posted March 3, 2008 Author Posted March 3, 2008 okay great :D Now it works. How can I change the code to realize www. addresses aswell? The users of my site are not tech savvy enough.
germ Posted March 3, 2008 Posted March 3, 2008 You don't need to change anything. Just be sure when you add HTML for external links, you always include the http:// If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there >
Recommended Posts
Archived
This topic is now archived and is closed to further replies.