Redirect 301 htaccess example

Redirection work

Redirect 301 is the way to redirect a URL. Have in mind .htaccess will work with Apache servers only.

Redirection jumps old URL to new URL when we used as like below code.

# BEGIN WpFastestCache
Redirect 301 /about-us.html http://www.xyzabc.com/about-us/
Redirect 301 /oldpage.html http://www.xyzabc.com/newpage.html/

How to redirect old domain to new domain?

Redirection jumps current domain to new domain:
RewriteEngine on 
RewriteRule ^(.*)$ http://www.yournewdomain.com/$1 [R=301,L]

No comments:

Note: Only a member of this blog may post a comment.

Copyright Reserved to Anything Learn. Powered by Blogger.