How to Host Wordpress in Alternative or Sub-Directory
March 19th, 2006 | Filed under About, Blogging, Tips, WordPress.Many users asked me how I got the archives tag into my permalinks structure. Well it is bascially because I did not want to put all my wordpress files in the root directory, just incase I decided to make other folders with installed MySQL databases and forums / wiki etc. I did not want them to conflict with each other.
So I created http://www.quickonlinetips.com/archives/ and installed Wordpress in that folder. But when you visit http://www.quickonlinetips.com/, how do you get to visit my Wordpress?
I copy my index.php file from http://www.quickonlinetips.com/archives/ to my root folder in http://www.quickonlinetips.com/ and modify the following text in the index.php file in a text editor from
to
require('./wp-blog-header.php');
require('./archives/wp-blog-header.php');
which does the trick. I had to remove my index.html file at the root, since it now accesses the index.php file instead.
After Wordpress login, If I go to Options> General - I have not edited WordPress address (URI) or the Blog address (URI) both of which stay http://www.quickonlinetips.com/archives
I hope this will help you place your blog in an alternative directory and still get it working from you root domain name. Remember, this is tricky and if you do not know how this works, do not fiddle with your wordpress settings, which might make your blog unusable.
» Upgrading Wordpress: Notify Visitors with Maintenance Mode
» Wordpress Plugins Directory : Find Most Popular Plugins
» Upgraded to Wordpress 2.0.4 : Quick and Easy
» Wordpress 2.1 Upgrade Tips and Tricks
» Site Down 36 Hours : How I Fixed Internal Server Errors
» Buy Beer for Wordpress Bloggers: New Paypal Donation Idea
» Dreamhost Easy Mode One-Click Wordpress Blog Hosting
» Blogsome Free Blog Hosting : Wordpress Themes and Image Hosting
» Submit Your Site to Yahoo! Directory : Added in 7 Days for $299

QuickPress

Comments
directory | 23/04/06 #
I appreciate that, it helped me out a bunch.
Gaya | 3/12/06 #
I can’t understand why you didn’t change WordPress URI and get this done. Since you have done it in this way, you have same content in,
http://www.quickonlinetips.com/ and
http://www.quickonlinetips.com/archives/
Their is a handy way WordPress suggests to get this done without duplicate content or an addition to the URL. Here is the URL,
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Comment on “How to Host Wordpress in Alternative or Sub-Directory”