How to Add 301 Redirects in WordPress?

301 is a HTTP status code number. This is a server side status code, returned by a web server when the requested URL by the client is reached by redirecting the user agent. The user agent is normally a web browser or a search engine crawler trying to access a web page. 301 status code is not shown in the browser window and the user agent is automatically redirected to another resource by the server. Hence, it is generally called server side 301 redirect setup.

Why You Need 301 Redirect?

301 redirect is very important for both SEO purpose and good user experience.

  • You have deleted the old page and created a new page.
  • Merged two pages together.
  • Transferred the domain to another name.
  • Moved content to another location like subdomain or subdirectory.
  • Updated the page URL.

In all the above cases, users trying to access old URL from links and bookmarks can be redirected using 301. Similarly, search engines can determine the new page value in search results similar to the old page.

Add 301 Redirects in WordPress

There are multiple ways to setup 301 redirect in WordPress.

  • Using free plugins like Redirection to manage simple and regex redirects or use premium plugins like Yoast SEO.
  • Manually add redirects using .htaccess file. You have to login to the server’s root directory using FTP or use File Manager in cPanel to access htaccess file.
  • Using redirect manager apps from cPanel hosting to add re-directives in htaccess file.

Using Redirection Plugin

The plugins manage redirects within WordPress setup and will not add any htaccess entries. Therefore, we recommend using Redirection or similar plugin to manage 301 redirects in WordPress.

  • Install and activate Redirection plugin in your site.
  • Go to “Tools > Redirection” menu.
  • Click on “Add New” and enter your source and destination URLs.
  • Save the changes to add 301 redirect.

You can also use other plugins like Rank Math and Yoast SEO Premium to manage redirects in WordPress site.

Leave a Comment