httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Mearns <>
Subject Re: [users@httpd] Help needed for rewrite rule
Date Wed, 15 Apr 2009 23:51:51 GMT
On Wed, Apr 15, 2009 at 7:41 PM, Igor Cicimov <> wrote:
> RewriteEngine On
> RewriteRule ^/(.*) /spaces/$1
> Igor

Actually, since it was specified as needing to redirect, you need the
[R] flag at the end, but that will end up redirecting forever. You
need to either set up the rewrite to not match when the requested URL
starts with /spaces/ (which would probably be a little tricky), or
just use a RewriteCond to apply when it *doesnt* match ^/spaces/.* .

Even if you don't actually want to redirect, but just do an internal
rewrite, you should probably still include this precaution (in fact,
you might need it, I'm not sure) in case someone actually tries to


Feel free to contact me using PGP Encryption:
Key Id: 0x3AA70848
Available from:

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