PDA

View Full Version : admin folder / htaccess problem


Chadi
02-19-2009, 10:12 PM
I have a custom renamed admin folder which has been working fine since long ago and of course setup accordingly in the config file. I originally also had been using deny/allow all IP method in an .htaccess file which also worked just fine. Always allowed me in from the single allowed IP and denied from everywhere else. However, I have this strange issue that I am unable to trace.

This time, I decided to use the Apache satisfy me .htaccess method (login auth required from any non-allowed IP).

My htaccess is this:

AuthUserFile "/home/username/.htpasswds/public_html/adminfolder/passwd"
AuthName "Somename"
AuthType Basic
require valid-user
Order allow,deny
Allow from xxxIPREMOVEDxxx
Satisfy any

When I use this method or just plain auth method (password protected admin folder), it always redirects me back to my home page.

The odd part is I'm using the same exact htaccess method on a couple other domains hosted on the same exact server. They all work fine there.

Dismounted
02-20-2009, 03:26 AM
So when you visit the URL, it redirects you without asking for any authentication details?

Chadi
02-20-2009, 03:35 AM
edit: found out it is caused by root folder vbseo htaccess rewrite rules

will contact vbseo about this

Dismounted
02-20-2009, 03:38 AM
On a side note, using the above htaccess method works fine from the allowed IP. But from any other IP where it should normally ask for authentication info, that's where it redirects me to the home page.
That looks like expected behaviour. Most likely, you have set the "Authentication Required" page to your home page.