View Single Post

  #4 (permalink)  
Old 05-04-2008
Luuk
 
Posts: n/a
Default Re: mod_rewrite/alias confusion

drhowarddrfine schreef:
> So this is what I have so far and it partly does what I want:
>
> RewriteEngine on
> RewriteRule ^/?(.*)$ cgi-bin/test [L]
>
> I don't think that's what I want to run with because I think a problem
> could come up with it matching everything, including impossibly long
> or obscure matches. Another problem is that it also matches image
> extensions, css stylesheets, javascripts and anything else I don't
> need to serve dynamically.


you should read http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
and look at RewriteCond

this way you can exclude the things you will not rewrite..

--
Luuk