• I am intending to redirect the top level domain of my church’s website using a 301 redirect in the .htaccess file. We also have a sub domain set up by the scouts using WordPress that I do not want to redirect. In the other sub domains I intend to use the following to prevent redirection of child domains:

    RewriteEngine On
    RewriteRule ^.*$ -

    As the scouts sub domain already includes an htaccess file, I’m not clear what, if any, changes, need to be made to it to prevent redirection, can someone help me out here please? The current contents of the htaccess file are as follows:

    # Switch rewrite engine off in case this was installed under HostPay.
    RewriteEngine Off
    
    SetEnv DEFAULT_PHP_VERSION 53
    
    DirectoryIndex index.cgi index.php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /ScoutsNew/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /ScoutsNew/index.php [L]
    </IfModule>
    
    # END WordPress

    Many Thanks
    Pete

  • The topic ‘How to prevent redirection of a sub domain’ is closed to new replies.