Title: htaccess problem [HELP]
Last modified: August 19, 2016

---

# htaccess problem [HELP]

 *  Resolved [Nicholas](https://wordpress.org/support/users/nerwin/)
 * (@nerwin)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/)
 * Alright I can’t find nothing on the web with this problem.
 * I have WordPress installed in my main directory ([http://nerwin.net](http://nerwin.net))
   and I have a download page ([http://nerwin.net/downloads](http://nerwin.net/downloads))
   and then once you go to that page (download page) theres a link on the bottom
   thats called “Administrator Login” and the directory is password protected, so
   when you click on “Administrator Login” it should come up with a login prompt
   but instead it redirects to my homepage.
 * Does anyone know how to fix this problem cause I just dont know what to do, I
   tried everything.
 * I really really really need help bad!!
 * Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [kmessinger](https://wordpress.org/support/users/kmessinger/)
 * (@kmessinger)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/#post-718622)
 * For me clicking on Administor gives a 404 error. That is because it is linked
   to `a href="http://nerwin.net/admin/ud`. Just change that link to a correct one.
 *  Thread Starter [Nicholas](https://wordpress.org/support/users/nerwin/)
 * (@nerwin)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/#post-718624)
 * I dont get that error [http://nerwin.net/downloads/](http://nerwin.net/downloads/)
 * When I click on adminstrator login, it just redirects to the homepage, but its
   suppose to come up with a login prompt
 * I know its something to do with wordpress, because I removed the rewrite rule
   in the .htaccess file and it worked BUT none of my links on my blog did not work,
   everything was not found except for external links.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/#post-718629)
 * Create a file on your website. Call it onerror.html. It can be empty. Doesn’t
   matter what’s in it, it just has to exist.
 * In WordPress’s .htaccess file, add this to the top of the file:
 *     ```
       ErrorDocument 401 /onerror.html
       ErrorDocument 403 /onerror.html
       ```
   
 * Obviously, change the path to be correct and such.
 * This will allow password protected subdirectories of the WordPress blog to work.
 * The reason for this is explained in more detail here:
    [http://wordpress.org/support/topic/89515](http://wordpress.org/support/topic/89515)
 *  Thread Starter [Nicholas](https://wordpress.org/support/users/nerwin/)
 * (@nerwin)
 * [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/#post-718641)
 * Thanks you sooo much!!! it works awesome now Thank you again!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘htaccess problem [HELP]’ is closed to new replies.

## Tags

 * [directories](https://wordpress.org/support/topic-tag/directories/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 3 participants
 * Last reply from: [Nicholas](https://wordpress.org/support/users/nerwin/)
 * Last activity: [18 years, 2 months ago](https://wordpress.org/support/topic/htaccess-problem-help/#post-718641)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
