Problem with the external links in the posts (2 posts)

  1. korfezli1966
    Posted 2 years ago #


    In my content there are external links for example: http://www.externalwebsite.com, and if I add them into my content with http;//, then when I click on the link, I can land on the external website.

    But whenever I add a link without http://www part, only externalwebsite.com, then I am landing on http;//www.mywebsite.com/externalwebsite.com/, which causes the user to land on a 404 page.

    Because of this problem, I am receiving error reports on google webmastertools and therefore my websites rank decreased.

    How can I configure it so, so that if a link does not have any http:// at the beginning can still go to the externalwebsite?

    The links are like this in my posts:
    <a href="/externaldomainhere.com/">click here</a>

    And same appears here, on wordpress.org, too. Check it here: click here

    But lands on after click: http://mydomain.com/externaldomainhere.com/

    Thanks for your help!

  2. arncus
    Posted 2 years ago #

    If you're going to be putting external links for a website, you would need to the follow the format for the HTML link code. You can't leave it out.

    <a href="http://external_domain_name.com">External Domain name</a>

    Otherwise, it won't link properly. You can decide to leave the WWW out, but you can't leave the HTTP:// portion out. Otherwise, the link won't work.

    And yes, if you do the link code improperly, it will be noted as a bad link and possibly affect your search engine rankings.

    By the way, if you noticed - if you put the text in between, you can make it appear without the "http://www". The code is designed to do that for you. Here's an example:

    <a href="http://wordpress.org">WordPress Home Page</a>

    This would appear in your post like this and still link out properly:

    WordPress Home Page

    Hope that helps to explain it!

Topic Closed

This topic has been closed to new replies.

About this Topic