Forum Discussion
Anish_Srivastav
Mar 02, 2010Nimbostratus
Hey Aaron
Let me try to explain again
The main domain of the site www.xyz.com is setup on the f5 as a virtual server and it has various sub-sections. One of the sections is product1, which usually users can access as http://www.xyz.com/product1 and this is also how its indexed in various search engines as well.
Let's say for SEO purposes I needed to create a sub-domain product1.xyz.com with a host header entry in IIS so that requests to http://www.xyz.com and http://product1.betus.com return the same response i.e. content and http://www.xyz.com/product1 is the same as http://product1.xyz.com/product1 (product1 is a subdirectory in the WebRoot).
So, basically what I am trying to achive is that when a request comes to /product1 on host http://www.xyz.com/[HTTP::uri] it should get redirected to http://product1.xyz.com/[HTTP::uri]
However, since, its a redirect, now any subsequent requests on the page (for e.g.) if the user clicks on /product2 (another of the subsections) the browser address bar shows http://product1.xyz.com/product2. This is what I don't want to happen. Either the Address bar should revert to the default host URL i.e. http://www.xyz.com/product2 or if I have another rule then redirect to http://product2.xyz.com/product2.
I will create as many host-headers that are needed for product1, product2 etc.
Hope I have not confused you any further. Thanks again
Regards
Anish