|
Posted by laredotornado@zipmail.com on 10/26/06 18:53
You're the man, Rik. You wouldn't happen to know how to enable the
mod_rewrite module in Apache 2's httpd.conf file, would you?
Thanks, - Dave
Rik wrote:
> laredotornado@zipmail.com wrote:
> > Hi,
> >
> > Based on some info on this newsgroup, I'm trying to password protect a
> > directory of both PHP, HTML, and image files. The web server is
> > Apache 2 and PHP is 4.4.4. I created this .htaccess file
> >
> > RewriteCond %{REQUEST_FILENAME} -f
> > RewriteCond %{REQUEST_FILENAME} !^accesscontrol.php
> > RewriteRule ^(.*?)$ accesscontrol.php?file=$i&%{QUERY_STRING} [NC,L]
>
> Hey, I know that code from somewhere :-)
>
> It works here, be sure to start you're .htaccess with:
> RewriteEngine On
>
> Ans that mod_rewrite is offcourse enabled etc.
>
> And this:
> RewriteCond %{REQUEST_FILENAME} !^accesscontrol.php
> should be:
> RewriteCond %{REQUEST_FILENAME} !^accesscontrol\.php
> --
> Rik Wasmus
[Back to original message]
|