httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
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 <micheleromano@suite101.com> 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.
> http://www.somedomain.com/filename.cfm#locationOnPage to relocate to
> http://www.somedomain.com/directory/filename.cfm#locationOnPage) 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
http://www.w3.org/Protocols/HTTP/Fragment/draft-bos-http-redirect-00.txt

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