• 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="https://www.website.com">Click here</a>

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

    https://www.mydomain.comhttps://www.website.com

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you post an example to where this is happening at?

    Thread Starter waterworks2

    (@waterworks2)

    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="https://www.amazon.com">Amazon</a>

    but when the user clicks, the actual URL is:

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WP adding domain before external URL's creating wrong link’ is closed to new replies.