Permalinks, changing the htaccess (1 post)

  1. cczernia
    Posted 8 years ago #

    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]

    However, I want to add this:

    RewriteCond %{HTTP_HOST} !^www.domian.com$ [NC]
    RewriteRule ^(.*)$ http://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.

Topic Closed

This topic has been closed to new replies.

About this Topic