Some pb to move an subdirectory install (local) to subdomain (web) (2 posts)

  1. Sylver---
    Posted 6 years ago #

    Hello, i have some questions :)
    I install a WP3 MU on localhost (so, subdirectory based) and everything is working. Now, i'm trying to install it on my webserver and change it to have subdomains.

    No problem for the wildcard.

    url : example.com & a.example.com & b.example.com, etc...

    I change :
    - wp_config.php :
    define( 'SUBDOMAIN_INSTALL', true );
    $base = '/';
    define( 'DOMAIN_CURRENT_SITE', 'example.com' );
    define( 'PATH_CURRENT_SITE', '/' );

    - wp_blogs : but i'm not sure what to write in the column path
    for now, domain is 'example.com' and path is '/a/'

    - wp_[x]_options : siteurl = 'a.example.com'

    So now, when i'm trying to reach a.example.com i'm redirected to example.com/wp-signup.php?new=a wich is normal (i think), according to the path in wp_blogs but that's not what i want :D

    So, what do i need to write on the column path ? And do the .htaccess different ?

    If you have other questions or remarks, be my guest ;)

  2. The sub-blog addresses are saved in *multiple* places in the db so you have to go change every one of them.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.