Re: mod_rewrite Issues
| From: | Michal Migurski | Date: | Sat, 19 Jun 2004 21:50:01 +0000 |
| Subject: | Re: mod_rewrite Issues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-188654@lists.php.net to get a copy of this message | ||
> This isn't exactly a PHP issue, but they seem to go rather hand in
> hand...
>
> Right now I'm just running my own apache server on my computer and I'm
> trying to protect my scripts using mod_rewrite. I uncommented all the
> mod_rewrite lines in the apache configuration file and restarted it all. I
> got no errors doing this, so I assume it compiled fine.
>
> The problem is, I can put a rewrite rule in the httpd.conf file or a
> .htaccess file but it never rewrites any URLs... For example:
>
> RewriteEngine on
> RewriteRule ^/woot$ /beta
You may need to add a RewriteCond:
http://httpd.apache.org/docs/mod/mod_rewrite.html#RewriteCond
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html