How to make Apache rewrite content ?

I would like to know how we can make Apache (2.0) rewrite content, ie. for example change all occurences of www.abc.com in the body of an html into www.xyz.com. Any ideas ?
bmeuwisAsked:
Who is Participating?
 
caterham_wwwCommented:
> in the body of an html

mod_rewrite cannot change HTML source code. You'll need a 3rd-party module, mod_proxy_html [1] for that. Mod_rewrite acts at HTTP request klevel, not HTTP response. Mod_rewrite can rewrite or redirect incoming requests (i.e. s/o clicked on a link or typed the URL into the location bar) to an other location.

[1] http://apache.webthing.com/mod_proxy_html/
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.