CSS
-Tricks
treehouse :
what would you like to learn today?
Web Design
Web Development
iOS Development
Show search box
Search
Search in:
All
Articles
Forums
Snippets
Videos
✕
Home
Forums
Snippets
Gallery
Videos
Almanac
Demos
Lodge
Navigation 'n' Search
Forums
Illustration by Nick Sirotich
Forums
»
Other Discussions
Wordpress installed in subdomain but want to run on root
jacorre
Permalink to comment
#
August 2011
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?
jacorre
Permalink to comment
#
August 2011
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?
Add a Comment
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?
Are there any repurcussions to using subdomain vs subfolder when you want to store the files there but run the site from the root?