The Easier Way To Do 301 .htaccess Redirection In WordPress

301-redirection

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=https://poxse.com/" />

Other create page redirection in Cpanel redirect;

cpanel-redirect

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

httaccess-generator

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

Redirect to specific page to another page
Redirect 301 /oldwebpage1.html http://www.example.com/newwebpage.html
or
Redirect 301 /oldwebpage2.html http://www.example.com/newwebpage/

Redirect entire website to another website
Redirect 301 / http://www.example.com/

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