permalinks in subdomains (3 posts)

  1. wesg
    Posted 8 years ago #

    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]

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

  2. Samuel B

    Posted 8 years ago #

    Put the .htaccess in your subdomain. I have one there and one in my root.

  3. wesg
    Posted 8 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.