How to setup virtual host?


#1

I have “www.mydomain.com” with an existing simple html based web site.

I added “www.mydomain.com/new” folder and setup a word press based site.

I added a DNS cname record for “new.mydomain.com”.

How do I get “new.mydomain.com” to load the /new site?

-Netwrksguy


#2

In the DH Control Panel Add a New Domain and scroll down until you find the Redirect section

Domain to redirect = new.mydomain.com
Redirect to URL = www.mydomain.com/new


#3

Thank you,

That works, not as clean as I would like, as it changes the URL, but I can live with that.

-Netwrksguy


#4

You could use “Cloaked” further down the screen. Personally I am not a fan – it creates a frame in the browser to do it (and frames are bad) and I am never comfortable when sites hide their true address


#5

why not just use rewrite in .htaccess?