Forum Discussion
Tommy_Campbell_
Nimbostratus
Mar 09, 2007Redirect/Reverse Proxy
I've recently been asked to do some URL re-writes for some vanity domain stuff for one of our websites.
A user types http://vanitysitename.company.com into a browser.
That URL gets redirec...
hoolio
Cirrostratus
Mar 09, 2007If you don't want the client to see the change, you'll want to use a rule to rewrite the URI before the request is passed to the web server, but not actually send a redirect to the new location to the client. The browser's address bar will show whatever the address is for the link they clicked on or were redirected to.
The overall process is pretty close to the example in this post (Click here).
For your scenario, you can check to see if the host is vanitysitename.company.com and then change the host to www.company.com and the URI to /URLredirect?subdomain=vanitysitename. If it's only one vanityname, you should be able to hardcode the vanitysitename. Else, if it's more you can use getfield to grab the subdomain from the host header in the client request.
Take a look at the other post and reply if you have questions.
Aaron
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