httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
Subject Re: [users@httpd] Help with simple rewrite
Date Sun, 15 May 2005 22:02:16 GMT
On 5/15/05, Manuel Blechschmidt <> wrote:
> >     <Directory "/home/apache/">
> >         RewriteEngine On
> >         RewriteBase /
> >         RewriteRule ^/gallery$ [L,R]
> >     </Directory>
> >
> > This does the re-direct, but does not change the URL in my browser.
> This is correct. The Rewriteengine is normally used to hide parameters
> of an cgi script. So it does an internal translation of the URL.
> ->

The "R" above indicates an external redirect, which will do the same
as a Redirect directive, so the use of RewriteRule is not the problem.
 The problem is likely the fact that the RewriteRule is inside a
<Directory> section, which is unnecessary and leads to confusion. 
Checking with the RewriteLog would probably show the problem.

Of course, using just the Redirect directive is simpler and should
work fine in this case.


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