Support » Fixing WordPress » Permalinks, changing the htaccess

  • I currently have a standard htaccess file in 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} !^$ [NC]
    RewriteRule ^(.*)$$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.