WordPress.org

Ready to get started?Download WordPress

Forums

Redirect to subdirectory (1 post)

  1. washingtonsarmy
    Member
    Posted 1 year ago #

    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.)?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