Home › Forums › BulletProof Security Pro › Can’t remove 301 redirects from htacccess
- This topic has 13 replies, 2 voices, and was last updated 1 week, 1 day ago by Hannah.
-
AuthorPosts
-
HannahParticipant
I 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 AdminKeymasterI checked the site and everything appears to be working correctly to me. Try clearing plugin cache and your browser cache.
HannahParticipantReally?!! 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 AdminKeymasterI see 2 images with Champagne greeting cards on that page.
HannahParticipantI’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 AdminKeymasterWhen 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.
HannahParticipantThanks, 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 AdminKeymasterYou 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 AdminKeymasterDid not read your entire post. Send an admin login to this website so I can see what is going on > info@ait-pro.com
HannahParticipantJust sent…thank you so much
HannahParticipantNote 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 AdminKeymasterEverything 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]
HannahParticipantThat’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.
HannahParticipantAnd 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.
-
AuthorPosts
- You must be logged in to reply to this topic.