I want to redirect the request to my machine to another URL[not IP address]. Is there any way to achieve this using iptables?.. or what is the way to achieve this?..
closed as not a real question by Lucas Kauffman, Ward, Michael Hampton♦, Ladadadada, rnxrx Aug 23 '12 at 16:43
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.
Iptables is used for ipv4 packet filtering. What you want is redirecting an url, which is part of http(rotocol). For forwarding an URL you can use a (simple) webserver, and configure it to forward request to another url.
Depending on your forward requirements this can be a simple html file with
Or a complicated ruleset using Apache mod_rewrite.