Forum Discussion
Joe_Pipitone
Nimbostratus
Mar 16, 2010Rewriting - syntax
I want to be able to catch http://www.domainname.com/anyurl/anypage.aspx or http://domainname.com/anyurl/anypage.aspx- both with and without the www and rewrite as needed. I am currently using an iRu...
The_Bhattman
Nimbostratus
Mar 17, 2010Hi Joe,
I think the use of the syntax might be a bit off
Here is what I think it might look like
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"ourdomain.com" -
"www.ourdomain.com" {
HTTP::redirect "http://anotherdomain.com[HTTP::uri]"
}
}
}
I hope this helps
Bhattman
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
