On Wed, Jul 1, 2009 at 4:58 AM, Peter Kiraly <[log in to unmask]> wrote:
> Hi Eric,
>
> try this:
>
> <IfModule mod_rewrite.c>
> RewriteEngine on
> RewriteBase /script
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteCond %{REQUEST_URI} !=/favicon.ico
> RewriteRule ^(.*)$ script.cgi?param1=$1 [L,QSA]
> </IfModule>
>
Here's a challenge question:
is it possible to write this without hardwiring the RewriteBase in it? So
that it can be used, for instance, in an .htaccess file from within any
/path?
- Godmar
|