Go Back   WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 02-11-2009, 01:21 AM   #1
HyperActive Warrior
 
Rebtl's Avatar
 
Join Date: Dec 2008
Location: U.S.
Posts: 274
Thanks: 27
Thanked 17 Times in 12 Posts
Contact Info
Send a message via AIM to Rebtl Send a message via MSN to Rebtl Send a message via Yahoo to Rebtl
Default HELP! I totally screwed my htaccess file!

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:


Quote:
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

Last edited by Rebtl; 02-11-2009 at 01:23 AM. Reason: typos
Rebtl is offline   Reply With Quote
Old 02-11-2009, 01:13 PM   #2
Senior Warrior Member
War Room Member
 
Karen Blundell's Avatar
 
Join Date: Jul 2008
Location: Niagara Region, Canada
Posts: 1,113
Thanks: 1,478
Thanked 412 Times in 322 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Karen Blundell
Default Re: HELP! I totally screwed my htaccess file!

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!

Karen Blundell is offline   Reply With Quote
Old 02-11-2009, 06:59 PM   #3
HyperActive Warrior
 
Rebtl's Avatar
 
Join Date: Dec 2008
Location: U.S.
Posts: 274
Thanks: 27
Thanked 17 Times in 12 Posts
Contact Info
Send a message via AIM to Rebtl Send a message via MSN to Rebtl Send a message via Yahoo to Rebtl
Default Re: HELP! I totally screwed my htaccess file!

I did get it working, Thanks for the help Karen!
Rebtl is offline   Reply With Quote
Old 02-13-2009, 02:22 PM   #4
Senior Warrior Member
War Room Member
 
Karen Blundell's Avatar
 
Join Date: Jul 2008
Location: Niagara Region, Canada
Posts: 1,113
Thanks: 1,478
Thanked 412 Times in 322 Posts
Social Networking View Member's Twitter Profile  View Member's YouTube Profile
Contact Info
Send a message via Skype™ to Karen Blundell
Default Re: HELP! I totally screwed my htaccess file!

yay! so very glad to help

Karen Blundell is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > Warrior Support Forums > Programming Talk

Tags
file, htaccess, screwed, totally

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -6. The time now is 04:09 AM.