Redirect to subdirectory (1 post)

  1. washingtonsarmy
    Posted 3 years ago #


    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.)?website.com$
    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.

Topic Closed

This topic has been closed to new replies.

About this Topic