cPanel 301 Redirects not working on a WordPress site

cPanel 301 Redirects not working on a WordPress site

The Gist:

If you find that the 301 redirects, you have added using cPanel’s “Redirects” tool, are not working on a WordPress site, make sure these redirects are added before the WordPress rewrite rules, in the .htaccess.

Best way to ensure this is to add your redirect rules first, through cPanel, then edit the .htaccess file and move the WordPress rewrite rule (everything between the comments # BEGIN WordPress & # END WordPress) below any redirect rules inserted via cPanel.

The Issue:

cPanel 301 redirects not working on a WordPress site.

The Fix:

Move the WordPress rewrite rule below any 301 redirect rules added via cPanel.

Example:

By | 2018-06-05T14:16:04+02:00 April 19th, 2018|Tips, Tricks or Guides|0 Comments
Need Assistance? Chat with us

Web SEO is pleased to announce that we have made contingency plans for all of our team members to remain fully operational during the national shutdown announced by the government. All of our team members will have full access to emails during this period and our support services will continue as per normal. (Learn more and stay informed about the COVID-19 national pandemic and how it affects you at sacoronavirus.co.za)