Forum Discussion
rmangram07_7795
Nimbostratus
Jul 26, 2013Redirecting Old Site to New Site Same Directory
I am new to irules and this seems straight forward but I cannot find the answer to this:
I have a site www.oldsite.com redirected to www.landingpage.com, and that works fine.
...
rmangram07_1105
Nimbostratus
Aug 07, 2013The script that I have working right now is the one dated 8/1/13, the redirection will still stay the same. Now we have customers that we will need to keep on the old site like you mentioned, how can I add this to the existing script:
This works great but I need to add that script above to this..
When HTTP Request {
if { [string tolower [HTTP::host]] equals "oldsite.com" } {
if { [string tolower [HTTP::uri]] equals"/" } {
HTTP::respond 301 Location "https://landingpage.com"
} else {
HTTP::respond 302 noserver Location "https://newsite.com[HTTP::uri]"
}
}
}
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