HELP! I totally screwed my htaccess file!

3 replies
So, I was trying to change my standard domain/wp-admin to something more secure, that is, to rename it and hide the original by manipulating my htaccess file.

Long story short all I ended up doing was totally f*%&^* my wordpress installation to the point that I can't access the admin area at all anymore.

I used this to change it originally:


RewriteEngine On
RewriteBase /
##### ABOVE THIS POINT IS ALREADY INSERTED BY WORD PRESS
##### Michi's code is BELOW #####
RewriteCond %{REQUEST_URI} wp-admin/
RewriteCond %{QUERY_STRING} !YOURSECRETWORDHERE
RewriteRule .*\.php [F,L]
RewriteCond %{QUERY_STRING} !YOURSECRETWORDHERE
RewriteRule ^ADMINFOLDER/(.*) wp-admin/$1?%{QUERY_STRING}&YOURSECRETWORDHERE [L]
##### Michi's code is ABOVE #####
##### BELOW THIS POINT IS ALREADY INSERTED BY WORD PRESS
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Then I tried to change it back to original, but nothing works.

-My domain/wp-admin is a 404 error

-my domain/NEWADMINFOLDER brings up my login page, but when I type username and pw, nothing happens.

I have tried putting the htaccess file back to the way it was orginally in my filemanager but it has no affect.

CAN ANYBODY HELP ME!?!?!?!

I can't believe I did something so stupid!!!!

Thanks,

Rebtl
#file #htaccess #screwed #totally
  • Profile picture of the author Karen Blundell
    hmmm..something is missing:

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    copy and paste the above exactly..and see if it works now

    good luck!
    Signature
    ---------------
    {{ DiscussionBoard.errors[507759].message }}
  • Profile picture of the author testaccount9998
    I did get it working, Thanks for the help Karen!
    {{ DiscussionBoard.errors[508691].message }}
    • Profile picture of the author Karen Blundell
      yay! so very glad to help
      Signature
      ---------------
      {{ DiscussionBoard.errors[514274].message }}

Trending Topics