Home › Forums › BulletProof Security Pro › Can’t remove 301 redirects from htacccess
- This topic has 15 replies, 2 voices, and was last updated 3 months, 2 weeks ago by
Hannah.
-
AuthorPosts
-
Hannah
ParticipantI need help on my client’s site, https://carpediempapers.com. I had set up a series of redirects that were not working on the staging site while I redesigned the site. We migrated it back to its permanent domain yesterday and they started “working” but errors appeared. I want to remove them all so things will settle down, but every time I do, the htaccess file seems to not be saved, as the redirects remain. Thanks for any help you can offer.
AITpro Admin
KeymasterI checked the site and everything appears to be working correctly to me. Try clearing plugin cache and your browser cache.
Hannah
ParticipantReally?!! You can see this url without any issues? https://carpediempapers.com/carpe-diem-papers-shop/holiday/holiday-greeting-cards/new-years/ This is an example of what we need to fix today.
AITpro Admin
KeymasterI see 2 images with Champagne greeting cards on that page.
Hannah
ParticipantI’ve figured out that I really do need to remove those redirects from custom code. The thing is that every time I try to do this, they reappear after I save it. Can you help?
AITpro Admin
KeymasterWhen you moved the wp-config.php file did you change the DB connection information? If you didn’t then the staging site DB would be loading and not the Live site’s DB. Or another possibility could be that the web host has ModSecurity installed and you would need to delete the redirect htaccess code in Custom Code and then click the Encrypt Custom Code button before clicking the Save Root Custom Code button.
ModSecurity probably makes up 99% of the Internet’s problems. LOL To be fair ModSecurity does much more good than bad.
Hannah
ParticipantThanks, I just sent a support ticket to her host and waiting on their answer. is there anything specific I should ask them? This is what I just sent them. Actually the db should have changed as well but I’ll let them verify this.:
“I use Bulletproof Security Pro for security and can’t activate it yet because there are redirects in their custom code that need to be removed. I asked them about this and just got their reply: When you moved the wp-config.php file did you change the DB connection information? If you didn’t then the staging site DB would be loading and not the Live site’s DB. Or another possibility could be that the web host has ModSecurity installed and you would need to delete the redirect htaccess code in Custom Code and then click the Encrypt Custom Code button before clicking the Save Root Custom Code button.
Actually that’s exactly what I’ve been doing. Can you disable mod security just long enough for me to remove those redirects? Or whitelist my IP so I can work with this? [and provided my IP]
I wonder if server caching is caching our checkout and cart pages? They’re not showing up on mobile.”
AITpro Admin
KeymasterYou don’t need to contact your web host for this. Sorry did not explain that the BPS Pro Custom Code Encrypt and Decrypt buttons are used to evade/bypass ModSecurity using encryption. So try doing the steps I posted above.
AITpro Admin
KeymasterDid not read your entire post. Send an admin login to this website so I can see what is going on > info@ait-pro.com
Hannah
ParticipantJust sent…thank you so much
Hannah
ParticipantNote the redirects to be removed are all after the #starting new shop redirects from default to custom pages line. They all need to go.
AITpro Admin
KeymasterEverything is working at this point but I have a question about these 2 RewriteRules below. Do you want to keep them or not? Upgraded BPS Pro on the site to the latest version.
RewriteRule ^products/(.*)$ /greeting-card-collection/$1 [R=301,NC,L] RewriteRule ^temp/(.*)$ /$1 [R=301,NC,L]
Hannah
ParticipantThat’s a really good question. I’m not sure what these redirects do.
Yes, I always remember to activate bulletproof mode and love that you have a reminder built into the process.
Hannah
ParticipantAnd you are a prince! Thank you so much for helping me get my client’s site straightened out. We have everything working now except the cart and checkout in Safari on mobile devices.
Hannah
ParticipantPS…excluding the cart and checkout from caching eliminated that last issue.
-
AuthorPosts
- You must be logged in to reply to this topic.