Ads Top

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]

1 comment:

  1. Usually I never comment on blogs but your article is so convincing that I never stop
    myself to say something about it. You’re doing a great job Man,Keep it up. : https://www.fdcmovies.com/

    ReplyDelete

Copyright Reserved to Anything Learn. Powered by Blogger.