Support » Fixing WordPress » Help me with 301 redirect

  • Hi,

    I tried to search forums for what I’m looking but couldn’t found it.

    I tried to redirect from

    http://www.domain.com

    to

    http://domain.com

    and here is my .htaccess I used.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.domain\.com
    RewriteRule ^(.*) http://domain.com$1 [L,R=301]
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    It’s work but when I click to read content that I’ve already rewritten to

    http://www.domain.com/articles/aaa.html

    and it’s error because 404 error. How can I fix it?

    cheers

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Help me with 301 redirect’ is closed to new replies.