• G-Olly

    (@g-olly)


    Hi there,

    I have a wordpress site (mysite.co.uk). I also have another add-on domain (mysite.fr) pointing to the wordpress site root. I would like to point this domain (mysite.fr) to this page – https://mysite.co.uk/this-page. I cannot seem to do this via cpanel as it only allows me to point the add-domain to the document root rather than the url generated by the site. To do this do I need to use .htaccess to redirect the mysite.fr url to the required page?

    Any help would be much appreciated, thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter G-Olly

    (@g-olly)

    I would also like to keep/display the mysite.fr url when on the mysite.co.uk/this-page url.

    Thread Starter G-Olly

    (@g-olly)

    Ok so managed to get the redirect happening using this on the .htaccess:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^mysite.fr$ [OR]
    RewriteCond %{HTTP_HOST} ^www.mysite.fr$
    RewriteRule (.*)$ https://mysite.co.uk/this-page/ [R=301,L]

    But unfortunately it doesn’t keep/disply the (mysite.fr) URL that I need. I have tried using this instead to acheive what I am after:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^(www\.)?mysite\.fr$ [NC]
    RewriteRule ^ https://mysite.co.uk/this-page%{REQUEST_URI} [L,NE,P]

    But this just ends up with the page never resolving itself. Please can someone let me know where I am going wrong and give me a better solution please?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Point add-on domain to WordPress site sub-page?’ is closed to new replies.