httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: mod_rewrite and apache
Date Tue, 15 Jan 2002 01:18:28 GMT

> From: Erik Parker [mailto:eparker@mindsec.com]

> Well, it comes down to a few things.. I don't want to use the "P" flag,
> because I don't want that apache instance to serve the images at all.. I
> want it to actually rewrite the code it serves to the client.. So a
> reference to:
>
> <img src="/images/foo.jpg"> is re-written as <img
> src="http://content.domain.com/images.foo.jpg">

Can't be done with any standard Apache module.  You want apache to scan
through each document as it is served and do a search/replace.  Mod_rewrite
acts only on the URL that is actually requested, not on the document
contents.

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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message