The Easier Way To Do 301 .htaccess Redirection In WordPress


There are many ways to do page redirection in WordPress;

Some use meta redirect tag by placing the code it in the head section.

<meta http-equiv="refresh" content="0; url=" />

Other create page redirection in Cpanel redirect;


Or using .htaccess generator to get the redirection code, and then paste it .htaccess file;


The easier way is edit the .htaccess file with the following code:

Redirect to specific page to another page
Redirect 301 /oldwebpage1.html
Redirect 301 /oldwebpage2.html

Redirect entire website to another website
Redirect 301 /

Redirect between internal page
Redirect 301 /oldpage1.html /newpage.html