Re: mod_rewrite/alias confusion
On May 4, 2:20 pm, Luuk <L...@invalid.lan> wrote:
> 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 readhttp://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
Read it over and over and over again. I think my problem is I keep
messing up with the regex. It's quiet today so I'm better able to
concentrate and may have found a way to get this work but would be
interested in what other people have to say:
RewriteRule ^/?([a-z/-]+)$ cgi-bin/test [L]
|