301 Redirects Not Working Properly
-
My website: https://www.johnrothra.com
WP is in the subdirectory /blog/ (initial setup was using domain jrothraministries.com with WP in a subdirectory, but I changed domains and kept WP in the subdirectory).
Some URLs are not redirecting as they should despite setting up the redirects via cPanel. Here’s where they are going:
https://www.jrothraministries.com/blog/feed/ –> goes to blank page (should go to https://www.johnrothra.com/feed/)
https://www.johnrothra.com/blog/feed –> redirects to https://www.johnrothra.com/blog-design-update-postponed-due-to-programming-difficulties/feed/ (should go to https://www.johnrothra.com/feed/)I’ve tried two ways to redirect: setting up the 301 via cPanel and via two WordPress plugins. None have worked.
Because the WP install is in a subdirectory there are two .htaccess files on my site, one in the root public_html folder, one in public_html/blog (for WP). cPanel writes to the root .htaccess. Below are the contents of both files and, as you can see, the 301s are there saying the above URLs should go where I say. Also, you’ll note that there is no redirect to https://www.johnrothra.com/blog-design-update-postponed-due-to-programming-difficulties/feed/.
htaccess in public_html: https://gist.github.com/anonymous/396893a5e6803c180adf
htaccess in public_html/blog/: https://gist.github.com/anonymous/dcb3492dd7e0874306e7I’ve talked to the host and they say it could be a conflict between the two. I’m not a coder so I’m not sure what all I’m looking at.
Here’s my two questions:
1. How do I get the redirects to work properly and go where I want them to go?
2. What is causing that redirect to https://www.johnrothra.com/blog-design-update-postponed…so forth?
- The topic ‘301 Redirects Not Working Properly’ is closed to new replies.