How to handle CNAME host redirect to virtual directory?

Posted by esac on Pro Webmasters See other posts from Pro Webmasters or by esac
Published on 2013-01-26T21:51:47Z Indexed on 2013/11/05 22:13 UTC
Read the original article Hit count: 153

I have an internal website and virtual directory http://server2012/logs. I created a CNAME on my DNS server as LOGS -> server2012. I would like to set it up so that http://LOGS redirects to http://server2012/logs. Ideally, I would still want it so that all pages appear in the browser as being off from the LOGS URL. So http://LOGS/network.html?site=32 is what is displayed in the browser, but it is really being served from http://server2012/logs/network.html?site=32. I've looked at URL rewrite, but can't seem to get to work.

© Pro Webmasters or respective owner

Related posts about redirects

Related posts about url-rewriting