mel_59881
Jun 19, 2007Nimbostratus
rewrite .com to .org
First, great site! Good design, good answers.
My problem: I need an iRule to rewrite .com requests to .org requests so my certs will not give a warning page. The url is www.mysite.org, but people frequently enter www.mysite.com which we have a dns entry for so it works, but when they try to access secure pages, they get a warning page.
I think what I want to do is the following:
when HTTP_REQUEST {
if { [HTTP::host] contains "mysite.com" }
{ HTTP::header replace "Host" "mysite.org" }
}
I'm an iRules noob, and I don't have a setup to test this before going live, so if anyone can give me a thumbs up or show me where I went wrong, I'd really appreciate it.
Thanks!
mel