mån 2006-06-26 klockan 17:11 +0300 skrev Kryol:
> I use a following rewrite rule:
> s@http://external-www/site1@http://internal-www/@i
>
> For homepage all works fine, i.e. for http://external-www/dir1 I receive http://internal-www/index.html.
> But I have a problem with sub-directories. All links on index.html are in form "/dir2/something.html".
> If I click on such link I receive http://external-www/dir2/something.html instead of http://external-www/dir1/dir2/something.html.
Rewriting only rewrites the requested URL, not returned HTML content.
> How to resolve this?
Maybe sending a browser redirect is more appropriate in your case?
Other options is to either
* modify the content on your internal-www to only use relative URLs,
never absolute URLs
* make redirects for all content referenced by the page. Easy if the
references is isolated to /dir2/ and /dir2/ isn't also used on the
external-www...
Regards
Henrik
This archive was generated by hypermail pre-2.1.9 : Sat Jul 01 2006 - 12:00:02 MDT