WordPress.org

Forums

[resolved] Malformed outbound link. May be htaccess issue? (3 posts)

  1. TheAnalyzer
    Member
    Posted 6 years ago #

    There is one link to an external web site in this post
    http://www.cottagesmallholder.com/?p=1063

    It's about half way down the page "The Old Farmhouse". The URL is http://www.cheveleybandb.co.uk

    The HTML generated appears to be correct but the link that is presented has the blog URL concatenated, like so:
    http://www.cottagesmallholder.com/www.cheveleybandb.co.uk

    I recently added a .htaccess file for canonical domain naming (301 redirect) and I wonder if this is coded incorrectly:

    Options +FollowSymLinks
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^cottagesmallholder.com [NC]
    RewriteRule ^(.*)$ http://www.cottagesmallholder.com/$1 [L,R=301]

  2. moshu
    Member
    Posted 6 years ago #

    It has nothing to do with htaccess.
    Learn to write the links properly! Every URL starts with http - NOT with www!

  3. TheAnalyzer
    Member
    Posted 6 years ago #

    Doh.

    Been 30 years in IT and I missed that simple error.

    Thanks, Moshu.

Topic Closed

This topic has been closed to new replies.

About this Topic