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.
 
search-engine-optimization

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:

RewriteEngine On

 

The following two tabs change content below.

Jey Ganesh

Jey Ganesh is a Blogger of bloggingcrow.com, Here you can find Blogging, Affiliate Marketing and Make money online tips. You can also engage with techThagavel via email: admin@bloggingcrow.com

Jey Ganesh

Jey Ganesh is a Blogger of bloggingcrow.com, Here you can find Blogging, Affiliate Marketing and Make money online tips. You can also engage with techThagavel via email: admin@bloggingcrow.com

Leave a Reply

Your email address will not be published. Required fields are marked *

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