Re: [Hampshire] mod_rewrite

Top Page

Reply to this message
Author: Brian Chivers
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] mod_rewrite
Keith Edmunds wrote:
> On Thu, 20 Nov 2008 18:22:33 +0000, brian@??? said:
>
>
>> RewriteRule ^([^/\.]+)?/?$ user.php?username=$1 [L,QSA]
>>
>
> Untested, but removing the first dot should do it:
>
> RewriteRule ^([^/\]+)?/?$ user.php?username=$1 [L,QSA]
>
> The documentation for mod_rewrite on the Apache site is pretty good, and
> it has a comprehensive debug mode too.
>
> hth,
> Keith
>
>

Removed the dot & got a 500 error & this in the error log

RewriteRule: cannot compile regular expression '^([^/\\]+)?/?$'

I'll have to have a read on the apache site later when I'm feeling more
with it :-(

Brian

------------------------------------------------------------------------------------------------
    The views expressed here are my own and not necessarily


                the views of Portsmouth College