Can’t remove 301 redirects from htacccess

Home Forums BulletProof Security Pro Can’t remove 301 redirects from htacccess

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #44165
    Hannah
    Participant

    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.

    #44167
    AITpro Admin
    Keymaster

    I checked the site and everything appears to be working correctly to me.  Try clearing plugin cache and your browser cache.

    #44169
    Hannah
    Participant

    Really?!! 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.

    #44170
    AITpro Admin
    Keymaster

    I see 2 images with Champagne greeting cards on that page.

    #44173
    Hannah
    Participant

    I’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?

    #44174
    AITpro Admin
    Keymaster

    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.

    ModSecurity probably makes up 99% of the Internet’s problems. LOL  To be fair ModSecurity does much more good than bad.

    #44177
    Hannah
    Participant

    Thanks, 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.”

    #44178
    AITpro Admin
    Keymaster

    You 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.

    #44179
    AITpro Admin
    Keymaster

    Did not read your entire post.  Send an admin login to this website so I can see what is going on > info@ait-pro.com

    #44180
    Hannah
    Participant

    Just sent…thank you so much

    #44181
    Hannah
    Participant

    Note the redirects to be removed are all after the #starting new shop redirects from default to custom pages line. They all need to go.

    #44182
    AITpro Admin
    Keymaster

    Everything 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]
    #44183
    Hannah
    Participant

    That’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.

    #44190
    Hannah
    Participant

    And 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.

Viewing 14 posts - 1 through 14 (of 14 total)
  • You must be logged in to reply to this topic.