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)
- How to make money with Amazon Mechanical Turk? - December 17, 2017
- 7 Most important Points increase your Blogs Page SEO - September 9, 2017
- How to setup 301 redirects for your WordPress website by using htaccess? - August 27, 2017