Modified .htaccess File in wp-admin Folder & Have Lost Access To Backend of Site (2 posts)

  1. dawsonbarber
    Posted 3 years ago #

    Just upgraded to 3.5 from 3.4.2 and ran into a problem where all of the text inside of the post/page editor was blank and nothing was clickable.

    On the front end, the content was all still present and visible.

    Searched the forum and found a page that seemed to describe the problem (related to the Bulletproof Security plugin, which I had installed on the site but had deactivated at some point in the past): http://wordpress.org/support/topic/post-editor-missing-in-wp-35-after-upgrade

    Someone suggested reactivating the BPS plugin and then activating the "Default Mode WP Default htaccess File" would do the trick.

    I tried it, but no luck.

    Towards the bottom of the page, someone else (username: Samuel Wood) described a solution that seemed to do the trick for others.

    Basically, the solution was to delete a line from the wp-admin .htaccess file. Specifically, this line: RewriteCond %{QUERY_STRING} ^.*(\[|\]|\(|\)|<|>).* [NC,OR]

    I'm guessing it was created by the BPS plugin.

    As a precaution, I made a copy of the contents of the .htaccess file, deleted the offending line, uploaded the modified .htaccess file and when I reloaded the dashboard, I found that I lost backend access to the site. I got the following error: Problem loading page. The page isn't redirecting properly.

    The front end still displays as it should, but I've got no backend access.

    And so much for my precaution, as I have tried to replace the code in the .htaccess file with the code that I made a copy of (the original code, with the offending line in it) but still have the problem.

    So what I really want to do is find a way to, essentially, revert the installation to the state it was in just before I reactivated BPS and modified the .htaccess in the wp-admin folder.

    As far as I know, .htaccess file in wp-admin was created by BPS - I've searched the WordPress core files in the WordPress folder on my desktop and do not see one there.

    So can I simply delete the .htaccess file in the wp-admin folder without it having any (further) adverse effects on this installation?

    Sorry for all the detail, but I just want to make sure I cover everything off so that I don't stuff things up any further.



  2. AITpro
    Posted 3 years ago #

    Just came across this Thread posted in no man's land. ;) The most current version of BPS no longer contains that code so you would just need to upgrade BPS and the upgrade will automatically replace that old code.

Topic Closed

This topic has been closed to new replies.

About this Topic