Support » Fixing WordPress » Redirect to subdirectory

  • Help!

    I know this topic is covered all over the web and I’ve had it working once but cannot get it back to functional again.

    My blog is installed under the subdirectory /dir and I am trying to have the main URL redirect to the subdirectory installation. My .htaccess file at the root contains the following currently:

    # BEGIN WordPress
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^(www.)?$
    RewriteRule ^(/)?$ dir [L]
    # END WordPress

    And I have the site URL under Settings/General set to the main URL

    I have tried a hundred versions of this code and I know it worked once before. Am I missing something in the code or somewhere else in my settings??

    Would really like to have this back to normal before Monday morning.

  • The topic ‘Redirect to subdirectory’ is closed to new replies.