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.
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.
The plugins manage redirects within WordPress setup and will not add any htaccess entries.
Article last updated on November 6, 2020