WordPress.org

Ready to get started?Download WordPress

Forums

multisite subdirectory to subdomain (21 posts)

  1. gilmore_love
    Member
    Posted 3 years ago #

    hello
    how can i change the multisite functionality from subdirectory to subdomain?? how can i figure out my WildCraft DNS is active or not??

    thanks all

  2. gilmore_love
    Member
    Posted 3 years ago #

    is there any guide to use multisite as subdomain functionality ?? coz its really complicated.

  3. joshmac
    Member
    Posted 3 years ago #

    If you've setup for subdomains and did the wildcard setup, then in a browser type something like blog.mydomain.com substituting mydomain.com with your real domain. If you are redirected to the main site or the signup page, then your wildcard dns is working.

  4. gilmore_love
    Member
    Posted 3 years ago #

    how can i setup wildcard ??

  5. joshmac
    Member
    Posted 3 years ago #

    Who is your host and are you using a control panel and if so, which control panel does your host use?

  6. wilcard subdomains are covered in the instructions:
    http://codex.wordpress.org/Create_A_Network

    If it;s too complicated, hire someone to help or ask your webhost about it. they have to support the feature anyway, and they will know.

  7. cecilporter
    Member
    Posted 3 years ago #

    I have the same question. My wildcard dns is set up and working.. BUT I'm running a former wpmu site using subdirectories that was upgraded to wp3 multisite. I want to use the Domain Mapping plugin, but that seems to require the subdomain setup.

    How do I convert the site to subdomains instead of subdirectories?

  8. I want to use the Domain Mapping plugin, but that seems to require the subdomain setup.

    No, it does not.

    If you read that in a post, it was an old post. Or, you misread the line about if the whole install is in a subfolder.

    You can domain map blogs that are in a subfolder.

  9. cecilporter
    Member
    Posted 3 years ago #

    oh.. yes, you're right. I read that here:
    http://ocaoimh.ie/wordpress-mu-domain-mapping/

    Let me rephrase my question then:

    My wildcard dns is set up and working. I'm running a former wpmu site using subdirectories that was upgraded to wp3 multisite with BuddyPress. I want to use the Domain Mapping plugin, and have followed the install instructions here:
    http://wordpress.org/extend/plugins/wordpress-mu-domain-mapping/installation/

    ..but it is not working.

    When I attempt to go to a domain I've mapped, it dumps me at my site's front page.

    Help?

  10. http://ottopress.com/2010/wordpress-3-0-multisite-domain-mapping-tutorial/

    Maybe you missed the bit about mapping the domain in the admin area of WP?

  11. cecilporter
    Member
    Posted 3 years ago #

    hmm. using the admin are of one of my sub-sites, I'm trying to use the 'domain mapping' menus under 'Super Admin' and get this message:

    Please edit your /home/folder/domainname.com/wp-config.php and move the line define( 'SUNRISE', 'on' ); above the last require_once() in that file.

    ..but it IS right above the last require_once() in that file.

  12. cecilporter
    Member
    Posted 3 years ago #

    (thanks for your replies, by the way)

  13. Put it up higher in the file.

  14. assetsp
    Member
    Posted 3 years ago #

    I dont know if anyone is interested but there is a way to install wordpress 3 with Multisite enabled and subdomain install, but keepe the wordpress files to a directory and not on the root. A bit a tweating is required but it is possible. Found a way after spending 5 hours testing.

  15. A lot of people would be interested.

    Can you make a new post with details?

  16. assetsp
    Member
    Posted 3 years ago #

    Ok. I ll try and make this sort. You need some advanced knowledge to make it correct. I wont explain stuff a developer should know like wildcard dns, etc.

    Ok . here goes:

    1) put wordpress 3 files in a directory (e.g wordpress) in the the root of your site. /siteroot/wordpress/
    2) edit wp-admin/network.php
    change the line :
    function allow_subdomain_install() {
    to :
    function allow_subdomain_install() {return true;
    3)install wordpress. Before final step edit wp-config.php and put the lines:
    define('SITECOOKIEPATH', '/');
    define('COOKIEPATH', '/');
    on top of the file.
    After install edit again and put define('WP_ALLOW_MULTISITE', true); like standard guidelines explained in wordpress codex.

    After you setup the network put the lines suggested in wp-config.php but change:
    $base = '/wordpress/';
    to
    $base = '/';
    4)
    For the .htaccess follow the following instructions:

    .htaccess on root : add these lines
    ##########################
    RewriteCond %{HTTP_HOST} ^([^.]+)\.clubefl\.gr
    RewriteCond $1 !wordpress/
    RewriteRule ^(.*)$ /wordpress/$1 [NC,L]

    .htaccess on wordpress directory:
    ##########################
    RewriteEngine On

    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]

    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    ######################

    That's all. This worked for my site. Please post your successful or not tries.

    Copyright of this Method is Assetsp.gr posted 1st at wordpress.org on 11/11/2010

    :)

  17. assetsp
    Member
    Posted 3 years ago #

    edit:
    in step 3 for wp-config.php
    define('SITECOOKIEPATH', '/');
    define('COOKIEPATH', '/');
    define('ADMIN_COOKIE_PATH', '/');
    define('PLUGINS_COOKIE_PATH', '/');

  18. Great, now do it without hacking. ;)

  19. assetsp
    Member
    Posted 3 years ago #

    well, its not really hacking...
    cant help it if app doesnt let me install it if files are in a directory.

    no workaround for that :)

  20. This bit:

    2) edit wp-admin/network.php
    change the line :
    function allow_subdomain_install() {
    to :
    function allow_subdomain_install() {return true;

    is the sticking point. If you could do it WITHOUT that line (or if that line can work on a 'normal' install, then it may be a fix. But if it's either/or then it sadly remains a hack and not a fix :(

  21. well, its not really hacking...

    editing core files is hacking. :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.