WordPress.org

Support

Support » How-To and Troubleshooting » permalinks in subdomains

permalinks in subdomains

  • Is there a way to use an htaccess file in the main domain to control the permalinks in the subdomain?

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    This is the htaccess markup used for permalinks, but how can I get this to be active only in my subdomain?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Put the .htaccess in your subdomain. I have one there and one in my root.

    Thanks for the reply, Sam.
    I should have mentioned that I do have the htaccess set up in the subdomain, but the problem I’m having is that the permalinks interfere with my redirects. I have 1 blog installation, with 2 interfaces, and the redirect from the main domain always goes to the index.php page, which I don’t want.

    I’ll keep looking.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘permalinks in subdomains’ is closed to new replies.
Skip to toolbar