Grow your CSS skills. Land your dream job.

WordPress installed in subdomain but want to run on root

  • # August 9, 2011 at 9:57 am

    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?

    # August 10, 2011 at 2:14 pm

    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?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".