exchange my current site with a new one

Discussion in 'General troubleshooting' started by edkaufmann, Apr 20, 2012.

  1. I'm about to exchange my current WEB site with a new one based on Orchard.

    ideally I would like to :

    - upload the new one to test
    - if ok; activate it without interruption

    along time ago I did this by creating a SUB-domain and loaded it into that directory (it worked) BUT I didn't find an easy way to just make the sub-doman the main-domain.

    Is there any doc which explains the most sensible way to do this!?

    thanks for your time
    ed
     
  2. copy the whole subdomain (subdirectory) content to the root; make backup of your site first just in case.
     
  3. thanks for your time!
    now I even having problems running it on my /Subdomains/nnn
    my setup:
    - I used WebMatrix to create my Site (.Net 4 integrated!)
    - I copied the content to /subdomains/xyz_14 (FileZilla)
    - I use below 'redirect' in my current site (Default.aspx)
    - I start with "nnn.mysite.org"
    - the debug (F12) shows correct /Subdomains/xyz_14 (but gives error 404)

    - my OLD web site runs .net 3.5! (NON-Orchard!)
    ? what am I missing here!??
    ? is there anythin special using Orchard?
    ? any IIS changes ?
    ?

    thanks for your advise
    ed

    // start: redirect subdomains
    string sname = Request.ServerVariables["SERVER_NAME"].ToLower();
    if (sname.ToLower().Contains("abc.mysite.org")) { Response.Redirect("/Subdomains/abc"); }
    else if ((sname.ToLower().Contains("nnn.mysite.org"))) { Response.Redirect("/Subdomains/xyz_14"); }
    else if ((sname.ToLower().Contains("def.mysite.org"))) { Response.Redirect("/Subdomains/def"); }
    else
    {
    }
    // end: redirect subdomains
     

Share This Page