• Say I try to go to a subdomain that doesn’t exist, i.e. nfgd.mydomain.com

    It redirects to the main WP install at mydomain.com.

    I added ‘remove_filter(‘template_redirect’, ‘redirect_canonical’); ‘ to my theme, but it had no effect.

    What’s the deal?

Viewing 5 replies - 1 through 5 (of 5 total)
  • What does your htaccess file say?

    Thread Starter RSLiam

    (@rsliam)

    # 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

    This is what WordPress generated, no alterations made.

    Thanks

    That looks ok. Have you asked your host? They must have pointed subdomains to your primary domain.

    Thread Starter RSLiam

    (@rsliam)

    edit: They just told me

    static subdomains do not work on our system as we now use dynamic add-on and subdomains

    So I guess I can’t do it 🙁

    It could be worse. At least they go to YOUR domain.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Can't stop redirects?’ is closed to new replies.