Page is a not externally linkable
- Code, Content, and Presentation
-- Apache Web Server
---- .htacess file prompting for password before redirecting


lucy24 - 4:15 am on Aug 6, 2012 (gmt 0)


Hm. That should have worked. Is your /admin/ folder physically located inside your root folder? That is, assuming your typical shared-hosting setup:

/users/yourname/example.com/{stuff here}
/users/yourname/example.com/admin/{stuff here}

If instead it's something like

/users/yourname/admin/{stuff here}
or
/completely-different-area/yourname/admin/{stuff here}

then requests for /admin/ will never "see" the root-level htaccess. But I have to assume that /admin/ is inside your main directory, because otherwise it would never get redirected. Unless-- whoops!-- your host also has a with/without www redirect option (look in the control panel, by whatever name) and you've also set a preference there. Better go double-check. While you're at it, see if you've got any other access preferences set at this level. No point in tearing out your hair if things are happening in the config file before they ever reach your own htaccess.


Thread source:: http://www.webmasterworld.com/apache/4482068.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com