• Resolved josh623

    (@josh623)


    spent last night and this morning on the chat w/ Bluehost support. My website was down, whenever you went to it it would automatically download a file and you could not access the website.

    Turns out they said “There was a code in the .htaccess file that was conflicting with the changes we made, it is removed now”

    And that the code is added from BPS that is causing the issue.

    How do I fix this problem?

    It was an php version code it was getting auto added:
    AddHandler application?x-httpd-phpbetas .php

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 17 total)
  • Plugin Author AITpro

    (@aitpro)

    BPS does not create that php/php.ini htaccess code. So probably that php/php.ini handler htaccess code is old custom htaccess code that was saved in BPS Root Custom Code in this text box: 1. CUSTOM CODE TOP PHP/PHP.INI HANDLER/CACHE CODE

    Go to BPS Custom Code.
    Click the Root htacces File Custom Code accordion tab/button.
    Delete the old php/php.ini handler htaccess code saved in Custom Code.
    Click the Save Root Custom Code button.

    Thread Starter josh623

    (@josh623)

    thanks. I did that but it broke my site again.

    Thread Starter josh623

    (@josh623)

    as soon as I activate BPS it modifies the .htaccess file and breaks the site. I did as you said, then replaced the .htaccess file with a backup and it worked for about 15 secs before breaking again (when BPS updated the file I assume)

    Plugin Author AITpro

    (@aitpro)

    What PHP server version do you have? It sounds like you need different php handler htaccess code for your PHP server version on BlueHost. Or maybe there is some additional custom htaccess code save in BPS Root Custom Code that is invalid/bad. Do these steps.

    1. Use FTP or your web host control panel file manager.
    2. Delete your Root htaccess file.
    Note: Is your website working correctly at this point? If so, your php server version does NOT require php/php.ini handler htaccess code. If your website is NOT working correctly then your website DOES required php/php.ini handler htaccess code.
    3. Go to BPS Custom Code and click the Delete button to delete all custom htaccess code saved in BPS Custom Code.
    4. Go to the BPS Setup Wizard and rerun the Setup Wizard.

    • This reply was modified 3 years, 12 months ago by AITpro.
    Plugin Author AITpro

    (@aitpro)

    I see you added additional information in your reply. Do you have the BPS or BPS Pro plugin?

    Thread Starter josh623

    (@josh623)

    I’m on PHP 7.4.13 @64BitOS

    yes it works fine after I delete the .htaccess file

    should I proceed?

    Thread Starter josh623

    (@josh623)

    I’m using BPS Pro

    Plugin Author AITpro

    (@aitpro)

    Ah ok what is happening is BPS Pro AutoRestore|Quarantine is autorestoring your root htaccess file with the bad php/php.ini handler htaccess code in it. Do these steps below to fix this problem.

    1. Use FTP or your web host control panel file manager.
    2. Rename the /plugins/bulletproof-security/ plugin folder to /_bulletproof-security/
    3. Delete your root htaccess file.
    4. Login to your website.
    5. Go to the WordPress Plugins page and click the Must-Use link at the top of the Plugins page.
    6. Click the Turn Off AutoRestore link.
    7. Rename the /_bulletproof-security/ plugin folder name back to /bulletproof-security/
    8. Activate the BPS Pro plugin on the WordPress Plugins page.
    9. Go to the BPS Setup Wizard page run the Pre-Installation Wizard and the Setup Wizard.

    • This reply was modified 3 years, 12 months ago by AITpro.
    Plugin Author AITpro

    (@aitpro)

    Corrected above: You will need to Activate the BPS Pro plugin between steps 7 and 8.

    • This reply was modified 3 years, 12 months ago by AITpro.
    Thread Starter josh623

    (@josh623)

    ok thanks will do! I’m still learning where the files are… would the plugin folder be in: public_html>mysite>plugins? I don’t see it there. Sorry for the trouble

    screenshot:

    • This reply was modified 3 years, 12 months ago by josh623.
    Plugin Author AITpro

    (@aitpro)

    The WordPress Plugins folder is located under the WordPress wp-content folder here: /public_html/razoredgeknives/wp-content/plugins/bulletproof-security/

    Thread Starter josh623

    (@josh623)

    ok I got to step 8, however, it won’t let me access the back end any more… a new .htaccess file was generated w/ the error code already. i’ll try deleting it again

    Thread Starter josh623

    (@josh623)

    yeah it’s not working, i went back through the steps again. it locks me out of the site and automatically downloads a file (you can try it, razoredgeknives.com) until I delete the .htaccess file again and disable BPS pro

    Plugin Author AITpro

    (@aitpro)

    After you delete the root htaccess file. Login to your site. Make sure AutoRestore is turned Off on the WordPress Plugins page > Must-Use page > BPS Pro MU Tools plugin settings. Then go to BPS Pro > B-Core > Custom Code > click the Delete button to delete all Custom Code. Then run the Pre-Installation Wizard and Setup Wizard.

    Plugin Author AITpro

    (@aitpro)

    I’m going to respond to the direct email you sent to me earlier to get this fixed.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘.htaccess file modified by BPS makes website not work’ is closed to new replies.