• Resolved azchipka

    (@azchipka)


    Ok so I just moved my WPMU site to a new server. On the old server I was using subdirectories and I want to change over to using subdomains.

    I have wildcard DNS and tried adjusting the wp-config and wp-settings files as directed in other forum posts. This worked fine and new sites are setup in subdomains with no problem.

    The issue I am running into is the old sites just completely stop working when I do this. What step am I missing here to make the old sites move over to being in the subdomains.

    Thanks for the help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter azchipka

    (@azchipka)

    Ok so I figured out what I missing. I had forgot to adjust the site url in the sites settings to the new location.

    So that leaves me with one remaining question. Is there a way to auto redirect everything to the new location.

    thedomain.com/xxxx/url should now point to xxxx.thedomain.com/url

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Editing the DB. You have to edit wp_sites to have the correct URLs.

    The old ones would have domain.com with a PATH of the subfolder name.

    You want to put / for the path and the subdomain name as the domain.

    If you make a new subdomain, you can see what it should look like and use that as an example ??

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The redirect would need to be done with .htaccess.

    Thread Starter azchipka

    (@azchipka)

    Disregard fixed it using:

    redirect /xxx/ https://xxx.thedomain.com/

    in the htaccess file

    Thread Starter azchipka

    (@azchipka)

    @ipstenu ok so I noticed something you said that I hadn’t done which is making an adjustment to the db directly in the sites table.

    I went to check that but the only thing showing there is the base domain itself nothing for any of the subdomains.

    Thread Starter azchipka

    (@azchipka)

    Ok so the only issue I am having at this point with the change over is a issue with the TimThumb script and featured images.

    As a result of the way I am doing the redirect the featured images are now being referenced as follows:

    https://azchipka.xxxxxxx.com/https://azchipka.xxxxxx.com/files/2012/03/IMG_0089.jpg&w=648&h=249&zc=1&q=100

    Clearly the domain is being double done. This problem is only present on the site that is being redirected using the above mentioned method, so I assume it is as a result of that. Is there a better way to perform the redirect?

    Thread Starter azchipka

    (@azchipka)

    Just incase anyone has a similar issue to this the problem was caused as a result of the fileupload_url being set to an incorrect path inside the options table of the db for the blog.

    I went ahead and throw up a how to for anyone who is looking to do the same thing:

    https://azchipka.thechipkahouse.com/archives/4046

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Subdirectories to subdomains’ is closed to new replies.