301 Redirects not working

esco

New Member
#1
Hi I completed a Wordpress redesign and now I have 200 pages with 404 error codes, I tried to add redirects to the .htaccess file, but this method is not working.
This is the method that I tried to use:

Code:
RewriteRule /destination/city/coloradosprings-airport/(.+) https://website.com/coloradosprings/$1 [R=301,L]
RewriteRule /destination/city/coloradosprings-airport$ https://website.com/coloradosprings/ [R=301,L]
What am I doing wrong, do I need to add the redirect to .htaccess or OLS admin / virtual hosts?

Thank you!
 
Last edited by a moderator:
#3
Hi I completed a Wordpress redesign and now I have 200 pages with 404 error codes, I tried to add redirects to the .htaccess file, but this method is not working.
This is the method that I tried to use:

Code:
RewriteRule /destination/city/coloradosprings-airport/(.+) https://website.com/coloradosprings/$1 [R=301,L]
RewriteRule /destination/city/coloradosprings-airport$ https://website.com/coloradosprings/ [R=301,L]
What am I doing wrong, do I need to add the redirect to .htaccess or OLS admin / virtual hosts?

Thank you!
The reasons for 301 redirect not working are much more well-defined among WordPress sites. One of the main causes is because you have added the rewrite rules on both the cPanel Htaccess Redirect Generator” tool and from your WordPress plugin.

To test whether you've set up your 301 redirect correctly, type your customized URL into your browser's address bar. If everything is set up correctly, you should be redirected to the defined destination page.
 
Last edited:
Top