httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Re: Should be easy RewriteRule issue: mod_rewrite.
Date Mon, 24 Oct 2005 13:37:22 GMT
On 10/24/05, Andoni <andonilist@eurokom.ie> wrote:
>
> Hi Joshua (and all),
>
> That worked great thanks, I had to take out the caret ^ you had at the
> beginning of /servMainSite in the RewriteRule to make it work but otherwise
> fine.

Yes, that was a typo on my part.


>   RewriteRule ^/(.*)$ /servMainSite?inner=$1 [R,QSA,L]
>
> I also added the R flag. Mainly because I always have done and it has always
> worked for me! The documentation is so confusing though, can you tell me if
> it is necessary? When I look at the RewriteLog I find that it has now got a
> 302 is this what I want? Should I add a "permanent" flag?

The R indicates an external redirect, meaning the client is asked to
refetch the resource at the new location (and you'll notice a change
in the client's URL-bar).  If you omit the R (which I would recommend
in this case), the server will fetch the content at the new location
and return it to the client as if it was at the old location.

Joshua.

---------------------------------------------------------------------
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