httpd-users mailing list archives

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

Hi,
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-_]+)$   /podwiki.pl?page=$1  [PT]

-- 
noodl

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message