OttimoMassimo_1
Nov 08, 2010Nimbostratus
HTTP re-write
Hi,
Apologies in advance for the newbie question!
I'd like to apply a HTTP re-write so when a user browses to blog.site.com they are redirected to www.site.com/blog/, but blog.site.com remains in the user's address bar.
I can currently redirect from blog.site to www.site.com/blog/ with the configuration below. Unfortunately www.site.com/blog appears in the address bar of the browser after the redirect. Is it possible to "re-write" to a new URL in the manner I've outlined?
when HTTP_REQUEST
....
switch [HTTP::host] {
"blog.site.com" {
HTTP:redirect "http://www.site.com/blog/"
}