Forum Discussion
Son_Le_382539
Jan 30, 2019Nimbostratus
Rewrite Redirect
Hi All,
Sorry my bad English.
I have a website https://abc.com.
Now I create new website named https://zxc.com.
I want to When user access site https://abc.com/newsite will redirect to https://zxc...
Rico
Jan 30, 2019Cirrus
Hey Son,
This iRule snippet should work for your redirect if you put it on the VS that corresponds with https://abc.com.
when HTTP_REQUEST
{
if {[[HTTP::uri] starts_with "/newsite"]}
{
HTTP::redirect https://zxc.com
}
}
As for the cookies issue, that seems like something that would have to be established within the application. As far as I know, there is not a way to rewrite cookies to a new site since the cookies are stored on a user's browser.
If you have any more questions, I am sure I can help.
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