PDA

View Full Version : [htaccess] Require valid user for all pages but one



Icy Penguin
October 30th, 2008, 03:44 AM
Not sure how to do this :/

Just need to require a valid user for every page - I'm also using RewriteConds - so welcome.php is actually /welcome/



AuthName "Authentication Required"
AuthType Basic
AuthGroupFile /dev/null
AuthUserFile /some/folder/oi/oi/nom/nom/nom/.htpasswd
require valid-use

What I have so far.

I've also set welcome.php as my DirectoryIndex (that's the page I want to be free from authentication (/welcome/)).

Thanks :)