Forum Discussion
Philip_King_719
Nimbostratus
Aug 13, 2009Redirect .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.
- The_Bhattman
Nimbostratus
I believe this might take care of it for youwhen HTTP_REQUEST { HTTP::redirect "http://[string map -nocase {".net" ".com" } [HTTP::host]][HTTP::uri]" }
- Philip_King_719
Nimbostratus
Works perfectly.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects