WordPress.org

Ready to get started?Download WordPress

Forums

WP adding domain before external URL's creating wrong link (3 posts)

  1. waterworks2
    Member
    Posted 1 year ago #

    WP seems to be adding the website's domain before each external URL.

    I only have a simple theme installed with no plugins installed.

    Example:

    My external link:

    <a href="http://www.website.com">Click here</a>

    but the actual URL when you click on the link is:

    http://www.mydomain.comhttp://www.website.com

    Any idea what this could and how I could potentially fix the problem? Seems to be happening to all external links.

  2. graphical_force
    Member
    Posted 1 year ago #

    Can you post an example to where this is happening at?

  3. waterworks2
    Member
    Posted 1 year ago #

    Unfortunately I cannot provide a link.

    Here is what the .htaccess is showing:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    Here is an example of the link problem. In the page content area, I will have something like:
    <a href="http://www.amazon.com">Amazon</a>

    but when the user clicks, the actual URL is:

    http://www.mydomain.com/name-of-page/www.amazon.com

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.