301 re-direct all inbound links to sub domain (2 posts)

  1. purelynatural
    Posted 3 years ago #


    I have changed the main domain to a sub-domain & would like to re-direct all external links to the new sub domain. Have read a few articles but having no luck editing the .htaccess as it might be interfering with all the rules in there.

    Old: http://www.example.co.uk New: https://secure.example.co.uk

    The current rules are quite handy because it seems to have sorted out the structure for all internal links. It has even updated the file path for images (or this could just be wordpress as the url was updated under general settings).

    This is the current .htaccess

    <files wp-config.php>
    order allow,deny
    deny from all
    # 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]

    # END WordPress


  2. purelynatural
    Posted 3 years ago #

    Hoping a change can be made to re-direct all urs for example if it link is http://www.example.co.uk/contact us would re-direct to https://secure.exaample.co.uk/conact us.

    Etc. Guessing this can be done.


Topic Closed

This topic has been closed to new replies.

About this Topic