Re: [Hampshire] mod_rewrite

Top Page

Reply to this message
Author: Keith Edmunds
Date:  
To: hampshire
Subject: Re: [Hampshire] mod_rewrite
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

--
Keith Edmunds

+-------------------------------------------------------------------------+
|    Tiger Computing Ltd    |  Helping businesses make the most of Linux  |
|  "The Linux Specialists"  |       http://www.tiger-computing.co.uk      |

+-------------------------------------------------------------------------+