• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1795
  • Last Modified:

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 ?
0
bmeuwis
Asked:
bmeuwis
1 Solution
 
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

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now