Nicholas Erwin
Member
Posted 4 years ago #
Alright I can't find nothing on the web with this problem.
I have WordPress installed in my main directory (http://nerwin.net) and I have a download page (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!
kmessinger
Member
Posted 4 years ago #
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.
Nicholas Erwin
Member
Posted 4 years ago #
I dont get that error 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.
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
Nicholas Erwin
Member
Posted 4 years ago #
Thanks you sooo much!!! it works awesome now Thank you again!