httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] preserving internal links on a rewrite
Date Tue, 03 Oct 2006 19:27:44 GMT
On 10/3/06, Michele Romano <> wrote:
> Hello,
> I am having trouble with a RewriteRule and I was hoping someone can lead
> me in the right direction, as I haven't been able to track down an
> answer on my own.
> I am setting up a rewrite that includes a target (eg.
> to relocate to
> and I
> can't seem to get the target information to work (ie. locationOnPage)
> This is the code I currently have:
> RewriteRule ^([a-zA-Z0-9_]+\.cfm)(.+) /directory/$1$2
> there never seems to be any information on $2... Is it possible to
> preserve the target?

I don't believe so.  Check your access log, and you'll find that the
browser isn't even sending the fragment (the part with the #) to the
server.  It resolves it internally.

An old discussion of this issue is at


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