• I currently have a standard htaccess file in domain.com/press that looks like this:

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

    However, I want to add this:

    RewriteCond %{HTTP_HOST} !^www.domian.com$ [NC]
    RewriteRule ^(.*)$ https://www.domian.com/$1 [L,R=301]

    The second rewrite comes from root (RewriteBase / ). I’m trying to figure out how to modify the wordpress rewrite so I can make the base at root level.

  • The topic ‘Permalinks, changing the htaccess’ is closed to new replies.