treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Wordpress installed in subdomain but want to run on root

  • I have done many installs of WordPress within a subfolder and then move the index.php into the root changing the following:


    <?php
    define('WP_USE_THEMES',true);
    require('./subfolder/wp-blog-header.php');
    ?>


    My question is when the WordPress install is within a subdomain like blog.domain.com. What do you set the index.php path to when you want the site to still be accessed at domain.com?
  • I guess I would just include the exact url.

    Are there any repurcussions to using subdomain vs subfolder when you want to store the files there but run the site from the root?