How to setup 301 redirects for your WordPress website by using htaccess?
In your blogs or website, sometimes have to remove any one of an old page for some reasons. But that is already indexed in the Search engines, so the user clicks from the search results it will get “Page not Found” error. Typically, 404 Page not found the error, not hurt your website SEO, but the best way we need to redirect the new pages. This will be very helpful for reducing your website bounce rate, as well as best user experience.
Setup 301 Redirect for Not found page
Collect your removed URL from Google Webmaster tool from Crawl – Crawl Errors, here all 404 error page will be displayed. Then open your .htaccess files from your website FTP folders. Here you have to enter redirect following code:
Redirect 301 /oldpage.html http://www.sampledomain.com/newpage.html
Setup 301 Redirect for entire domain
If you change your website domain name you have added the following code to redirect the old domain to new domain:
Redirect 301 / http://www.newdomain.com/
This will redirect all of your old domain pages to new domain pages. please be note your .htaccess files should enable the Redirect engine by using following code:
Latest posts by Jey Ganesh (see all)
- 25 Important WordPress websites Tips for improve the Performance and SEO Ranking - December 4, 2018
- How to use the LSI Keyword effectively in your Website? - October 18, 2018
- How to make HTTP to HTTPS Migration Process Properly? - October 7, 2018