Redirection are the techniques which allow your user and Google bots to land on an updated URL. It also helps you to prevent showing an error page or the page does not exist message to the user and bots. The redirection technique allows you to set a rule to land your users to the newly assigned URL. It also helps you to not lose your regular traffic on the site.
There are mainly 4 types of redirection in SEO and it can be resolved by adding a few lines of code into the header section of .htaccess file. To open it, go to cPanel>> .htaccess file>> Click to edit. Make sure to save a copy before editing the file.
If your website is under construction or due to any circumstances, you
want to make your site off and redirect your existing users to a different URL,
use the 302 Redirection method. It will help you to make your current URL live
again after a few days.
Code for 302 Redirects for Pages or Posts
302 Redirection Code for a Page
# BEGIN 302 Redirects Redirect 302 /existing-page/ https://www.yourwebsite.com/new-page/ # END 302 Redirects
302 Redirection Code for a Post
# BEGIN 302 Redirects Redirect 302 /existing-post/ https://www.yourwebsite.com/new-post/ # END 302 Redirects
It used to notify the Google bot that the content given on the two or more URLs are the same. It’s not the two different pages. In simple words, the “rel=canonical“ tag helps to understand the crawler that even the content is duplicated on two pages but the thing is the same and index my preferred page among them. And these all can be done by using Page Redirections techniques. The noticeable point in this tag is, you will have to put the preferred URL only not the URL1 & URL2 both. Interesting isn’t it.
There are many cases where you may require to use the rel=canonical
tag, few of them are as below:
A) Your website is getting opened on all the variations like the below URLs
So, in that case, you can use the “rel=canonical” tag by following the below structure <link rel=”canonical” href=” https://www.yourdomain.com/” />
D) Any website has copied your content and post it on their site. In that case, you can use the tag to mark the preferred URL.
404 Error Page (Non-Available Page Redirection)
What does 404 Error Mean?
Sometimes it happens that the user is searching for your internal pages manually and they made some spelling or symbol mistakes. At that time your 404 custom page will redirect them to a targeted URL. 404 Error can be customized for some other reasons too using the page redirections technique.
How to solve the 404 Error?
Step 1: Create a custom 404 Error page Design as usual by giving some redirection options and an
eye-catching layout to attract the viewers. Rename the file for your reference.
Step 2: Now open .htaccess file and insert the below code &
save it. It’s done
Code Structure: ErrorDocument 404 /your custom 404 page name with .html extension e.g. ErrorDocument 404 /404.html
Step 3: All the non-existing pages of your domain will be
redirected to this custom page you have designed.
If you don’t want to play with these codes, you can use some popular redirection plugins for your WordPress website:-
Hope you just learned few new things from this blog. Your response will inspire me to share more knowledge with you using my experience and skill. So please like, share & leave your comment below. You can also Contact Us for any query or services such as Google Ads or Content Writing.
I am into Digital Marketing since 6+ years and worked on multiple projects for the same niche. It's my view that sharing the knowledge head you towards learning new things and enhancing yourself. So here, I used to write articles based on my personal experience only. And I hope you will like & learn more by reading these all. Also, I am a Google Paid Advertising Expert and a Professional Content Writer. So you can ask me "How to boost up your business revenue?". Thanks!