Forum Discussion
redirect then rewrite header
We are bringing in a large amount of vanity domains, then need to redirect to content path but retain the vanity domain. Need some assistance writing the rule.
Example: Client reaches http://vanitydomain.com then get redirected to the content @ https://notyourdomain.com/vanitydomain but show vanitydomain.com in the address bar for the client.
It is ok if the path remains visible also, such as https://vanitydomain.com/vanitydomain
2 Replies
- Vijay_E
Cirrus
When you send a redirect back to the client, the new domain would have to be used for future requests by the client.
Mike,
What you are requesting seems closer to a reverse-proxy instead of a redirect.
This can be accomplished using URI Translation in a rewrite profile.
In the URI rules section you would create an entry, possibly multiple entries.
Client URI: https://vanitydomain.com/ Server URI: https://notyourdomain.com/vanitydomain/I modified both to be
and they will need to end in ahttps
./I'm not sure if it's possible to have
client-side andhttp
server-side, but if you could, I would strongly recommend against it.httpsThe rewrite profile has traditionally been a feature of APM, but I believe rewrite profiles were added to LTM starting in 11.4, but don't quote me on that.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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