"dave" <dave.RemoveThis@boost-consulting.com> schreef in bericht
news:1102609382.641774.83920@f14g2000cwb.googlegroups.com...
Next time leave some of the message you respond to here, to give the (new)
reader a clue of the preceding.
> Thanks, but that has all of the problems with relative links that I
> mentioned before. That is,
> if <a style='text-decoration: underline;' href="http://mydomain/foo/bar.hmtl" target="_blank">http://mydomain/foo/bar.hmtl</a> contains
> link
>
> then when visited via <a style='text-decoration: underline;' href="http://mydomain/baz.html," target="_blank">http://mydomain/baz.html,</a> the link now refers
> to <a style='text-decoration: underline;' href="http://mydomain/mumble.html" target="_blank">http://mydomain/mumble.html</a> instead of
<font color=purple> > <a style='text-decoration: underline;' href="http://mydomain/foo/mumble.html</font" target="_blank">http://mydomain/foo/mumble.html</font</a>>
>
> That's the problem I'm trying to solve.
That's the browser recontructing an fully qualified URL using both the
_relative_ URL and the URL of the page currently displayed.
> For example, if there was a way to make RewriteRule
> conditional on the page that was the source of the link,
> I could arrange for all these links to be properly redirected by
> rewriting them only when the user is visiting
> <a style='text-decoration: underline;' href="http://mydomain/baz.html." target="_blank">http://mydomain/baz.html.</a> But I can't find that.
The current page's link is ther referrer for the links in it, so
"RewriteCond %{HTTP_REFERER} ????" shoul be your key.
However, some browsers allow the user to disable sending the referrer ...
hence to solve this issue relieable have the URL start at document root,
like
link
HansH<!-- ~MESSAGE_AFTER~ -->
>> Stay informed about: transparent redirect (like alias) in .htaccess