New Zenner
- Join Date:
- Dec 2009
- Posts:
- 15
- Plugin Contributions:
- 0
Issues with modifying htaccess file
hi,
I'm trying to modify the .htaccess file. I've followed the FAQ on "How can i block specific hacker activity", however when i modify my htaccess file and then upload it back to my folder it blocks my admin login page as well. Looking at the code that I am supposed to add according to the FAQ, it doesn't say to redirect the "/admin" folder to page not found.
"
// redirects any URL that includes: record_company.php/password_forgotten.php
RedirectMatch Permanent ^/(.*[record_company.php]+)/(password_forgotten.php)$ /page_not_found.php
// redirects any URL that includes: /images/wp- with 'wp-' being anything that ends with '.php'
// this allows for images named such as 'wp-header.jpg' to work
RedirectMatch Permanent ^/(.[images]+)/(wp-..php)$ /page_not_found.php
"
Please help. I'd like to close off these security holes. Thanks!