Forum Discussion

Philip_King_719's avatar
Philip_King_719
Icon for Nimbostratus rankNimbostratus
Aug 13, 2009

Redirect .NET to .COM

Is there a way to redirect any connection made to a URL ending in .NET to the same beginning plus .COM (Change http://www.mysite.net to http://www.mysite.com)?

 

 

I found this article (http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&postid=28200&view=topic), but would like to not get into listing out each site to redirect.
  • I believe this might take care of it for you

     
     when HTTP_REQUEST {   
          HTTP::redirect "http://[string map -nocase {".net" ".com" } [HTTP::host]][HTTP::uri]"  
     } 
     

    Hope this helps

    CB