How to make 301 Redirect Using htaccess File

If you want to redirect from an old document to new:

 Redirect 301 /old/file.html http://yourdomain.com/new/file.html

Use following for redirecting Entire Directory.

 RedirectMatch 301 /blog(.*) http://yourdomain.com/$1

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.