Forum Discussion
Bob_10976
May 12, 2008Nimbostratus
iRule re-write to replace ISAPI re-write
Hello all...
We are currently using ISAPI re-write in our portal to re-write uri's to the appropriate location. With the help of this forum I came up with the following, which work...
Xin_99652
Oct 10, 2008Nimbostratus
Hi Aaron/BobMc,
many thinks for both of you.
I need change http://mycompany.com/* -> http://www.mycompany/*.
I am going to try both codes.
The question I have for BobMc,
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "www.mysite.com" } {
HTTP::respond 301 Location http://mysite.com[HTTP::uri]
}
It looks like convert www.mysite.com to mysite.com, right? I need another way, right?
should be this way?
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "mysite.com" } {
HTTP::respond 301 Location http://www.mysite.com[HTTP::uri]
}
thanks,
Xin
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