Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

My Wordpress site is having a bad URL structure when I'm adding new URL.

For example in comments, when commentators fill in their website, it always has this structure http://mysite.com/www.commentorsite.com/.
The same thing happens in my side bar widget. When I add new text widget and put something like this <a href="facebook.com/mypage" title="Find Us On Facebook"><span class="social">Find Us on Facebook</span></a>, the result showing this instead http://mysite.com/facebook.com/mypage.

Could anyone help me solve this please!

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

You need to start your links with http://

Examples:

  1. The link facebook.com/mypage becomes http://facebook.com/mypage

  2. The link www.commentorsite.com/ becomes http://www.commentorsite.com/

This will stop the links becoming http://mysite.com/www.commentorsite.com/ or http://mysite.com/facebook.com/mypage

share|improve this answer
    
Great! It's working. Thanks you very much +1! –  Sok Vanrithy Oct 28 '12 at 1:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.