The MU forums have moved to WordPress.org

Switching from, directories to subdomains (17 posts)

  1. ssbansal
    Member
    Posted 16 years ago #

    I have bought myself a dedicated IP, and i had switched vhost to yes, but there seems to be a problem that that it doesn't show the blog. it only shows a blank page.

    main blog site: http://desiblogs.co.uk

    vhost blog: http://tester.desiblogs.co.uk

    someone please help as this website will release at new years

  2. andrea_r
    Moderator
    Posted 16 years ago #

    You have to do a reinstall to switch that, not just a one-line edit in the config.

  3. ssbansal
    Member
    Posted 16 years ago #

    O ok thanks
    Ill try that out and see what happens

  4. ssbansal
    Member
    Posted 16 years ago #

    Edit: I forgot that i had ended up deleting the default themes before lol, that is why it didn't work

    and yes you can just change a config value to make it work, all works perfect now :)

    define('VHOST', 'yes');

  5. andrea_r
    Moderator
    Posted 16 years ago #

    Is this a brand spankin new install?

  6. ssbansal
    Member
    Posted 16 years ago #

    No it's a from my previous installation.

    I installed a new copy on a different server with subdomains default set.

    Then i just copied the .htaccess from that server to my one.

  7. andrea_r
    Moderator
    Posted 16 years ago #

    And the pre-existing user blogs work okay? The ones that were set up as subdirectories?

  8. Iron
    Member
    Posted 16 years ago #

    ssbansal, in wp_blogs you have:

    domaine | path
    ----------------------
    blog.domain.ltd | /
    domain.ltd | /blog/

    The first with vhost=yes, the second vhoste=no

    It's no a one line edit.

    You will have to change this wp_blogs table as well as each pre-existing wp_x_options

  9. lunabyte
    Member
    Posted 16 years ago #

    As well as update all the permalinks for each blog you have.

  10. ssbansal
    Member
    Posted 16 years ago #

    Yes, but there are no blogs on the site yet, as we are still working on functionality and everything, therefore it is only one blog, which is the main blog site, and everything seems to be working 100%.

  11. andrea_r
    Moderator
    Posted 16 years ago #

    But if you'd had blogs, it's be all screwed up.

    We're all correcting you so some poor sod doesn't read this thread in the future and thinks he can switch 500 users over with a one-line edit. :)

  12. Iron
    Member
    Posted 16 years ago #

    Futur reader !
    don't do this !

    You will loose your indexed pages !!
    You will suffer !

    Build a new website !

    :D

  13. ssbansal
    Member
    Posted 16 years ago #

    Well that's true, there should be some script made to do an update on switching.

    Would be very useful !

  14. theapparatus
    Member
    Posted 16 years ago #

    When should we expect you to have it done? ;)

  15. andrea_r
    Moderator
    Posted 16 years ago #

    lol @ Iron

  16. ssbansal
    Member
    Posted 16 years ago #

    No im not making the script, im just thinking that there should be one made.

  17. Iron
    Member
    Posted 16 years ago #

    I think this is a "set it" and "forget it" option.

About this Topic