WordPress.org

Ready to get started?Download WordPress

Forums

Help me with 301 redirect (2 posts)

  1. Puripong
    Member
    Posted 7 years ago #

    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

  2. Puripong
    Member
    Posted 7 years ago #

    Please help TT

Topic Closed

This topic has been closed to new replies.

About this Topic