httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Bray" <>
Subject Re: [users@httpd] Problems using RewriteRules in .htaccess
Date Fri, 20 Oct 2006 10:57:10 GMT
On 10/20/06, nocturnal <> wrote:
> What steps have i missed?
> RewriteEngine on
> RewriteRule ^/([A-Za-z\-\_]+)$   /$1  [PT]

In .htaccess files the base uri is stripped. In this case that means
you should remove the leading '/'. (Also, your backslashes are
redundant and so are the ^$ anchors. I've left the latter in to
demonstrate the point about stripping the base uri).

RewriteRule ^([A-Za-z-_]+)$   /$1  [PT]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message