• Hi, I’m having a problem getting the 301 redirect right for my wordpress site. Right now my htaccess file is set up to allow me to have my site within the wordpress folder but not have that folder show up in the url. Now I want to 301 redirect to also force my site to be http://www.mysite.com, not http://mysite.com.

    When I tried to do this there was an error:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain\.com
    RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]
    </IfModule>

    # END WordPress

    Any suggesstions on what I’m doign wrong and how to fix this?

  • The topic ‘301 Redirect .htaccess causing error’ is closed to new replies.