Search squid archive

Re: SquidGuard rewrite questions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Attachment: signature.asc
Description: Detta =?ISO-8859-1?Q?=E4r?= en digitalt signerad meddelandedel


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux