About the Post

Author Information

Permanently (301) Redirect Old Domain URL to New Domain URL Using .htaccess – Linux Server


# BEGIN WordPress
RewriteEngine On
RewriteCond %{HTTP_HOST} ^oldsite.com
RewriteRule (.*) http://newsite.com/$1 [R=301,L]
# END WordPress

Make sure to change url for oldesite.com and newsite.com

Tags: ,

No comments yet.

Leave a Reply