Skip to contentSkip to conversation

How do I use Iptables to redirect URL

DISCUSSION shaofeng 2 participants 2 messages Dec 12, 2006 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 5 lines · shaofeng

When somebody connect to host A and the URL is "http://www.A.com/A.htm".
I want to redirect to the request to host B and change the URL as "http://www.B.org/B.htm"
How do I set the iptables rule.

You cannot redirect an url using iptables.
You can do that in Apache or, if it should be done before apache, in Squid.

Grts,
Rob