If your blog is the main point of focus for your website, you probably want to it serve your pages when a user hits the root of your website, such as:
http://example.com/
But, for the sake of keeping your root directory organized on your webserver, you might not want to install WordPress in that directory. Rather, you might want to install WordPress in subdirectory, such as “blog”.
Edit the .htaccess file
Open the file named “.htaccess” in the root directory. Or create one if it doesn’t exist. Add the following to it:
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Create an index.php file
Create a file in the root directory called “index.php”. Assuming your WordPress is installed at the /blog subdirectory, add the following to the file:
<?
define('WP_USE_THEMES', true);
require('./blog/wp-blog-header.php');
?>
Change the blog URL in WordPress options
Log in as Admin to WordPress. Change the blog URL from “http://example.com/blog/” to “http://example.com/”
If you liked this article
If you liked this article, don’t forget to subscribe for updates!
Get updates by RSS (What’s RSS?)
Follow me on Twitter
Top Incoming Search Terms
" reply"site:http://digitivity.org/ "changing website homepage" "install wordpress in root directory" "wordpress 3" "in subdirectory" +wordpress +subdirectory +htaccess .htaccess wordpress installed in folder change installation url wordpress change site url wordpress dreamhost change wordpress directory to main index change wordpress in directory index change wordpress to point to root change wordpress to root changing url to point to subdirectory changing website homepage to point to subdirectory dreamhost changing wordpress 3 to root directory create htaccess alter root define wordpress root directory? display wordpress in root htaccess index.php dreamhost .htaccess subdirectory dreamhost blog root directory dreamhost have wp point to root dreamhost how to show wordpress blog to the root directory dreamhost make homepage wordpress dreamhost sub directory wordpress dreamhost wordpress blog access point url dreamhost wordpress homepage dreamhost wordpress in root directory dreamhost wordpress index dreamhost wordpress root directory dreamhost wordpress url drupal in a subdirectory of wordpress in root drupal wordpress share root get wordpress installed root directory dreamhost getting wordpress blog to show as root folder how "wordpress is installed" linux how do i keep my wordpress installation in a subdirectory but make the url show the root directory how do you point index to wordpress site how to create a directory in the root wordpress how to create wordpress blog the root url how to have yahoo wordpress as root how to install wordpress dreamhost subdirectory how to make blog main url dreamhost how to make root point to wordpress page how to make wordpress root directory how to make wordpress show up on root url how to point a root url to a directory how to point to a directory wordpress how to point to subdirectory through htaccess where wordpress site was developed ... how to point to wordpress blog from root how to point website to subdirectory how to point wordpress to root how to point wordpress website to dreamhost how to publish a wordpress site root how to replace 01-red.css on dreamhost how to serve from subdirectory how to serve wordpress blog how to show a wordpress install in root when it\'s installed in a subdirectory how to show wordpress content fromsubdirectory on root htaccess define blog folder as index htaccess make wordpress directory root htaccess subdirectory wordpress htaccess subdirectory wordpress root htaccess when wordpress is not installed in the root folder htaccess wordpress 3.0 subdir htaccess wordpress to root http://digitivity.org/tag/subdirectory index file in root directory index.php point to blog also show root files install blog yahoo root install drupal in subdirectory of wordpress install drupal in subdirectory when wordpress is in root install in subdirectory serve as root install wordpress 3 in subdirectory install wordpress 3 root directory existing website install wordpress 3.0 root directory install wordpress dreamhost root install wordpress in a drupal subdirectory install wordpress in root + yahoo install wordpress in root directory install wordpress in root directory and a subdirectory install wordpress in root without index.php install wordpress on root yahoo install wordpress on subdirectory but serve site homepage install wordpress redhat install wordpress root directory installing wordpress 3.0 in a subdirectory installing wordpress in root directory of a live sitel installing wordpress in root directory of existing site installing wordpress on existing website in main directory installing wordpress on root is a mess installing wordpress root yahoo keep wordpress in root but add directory keep wordpress on root keeping index.php in url in wordpress keeping wordpress in subdirectory but index in root leave a reply site:digitivity.org location of root directory dreamhost make blog main url dreamhost make blog root directory dreamhost make url point to wordpress folder make wordpress blog index root folder make wordpress open on www root make wordpress power site\'s root make wordpress root make wordpress root directory make wordpress root url make wordpress the root make wordpress your root making a wordpress blog from a root directory to a sub-directory making home page point to sub directory making wordpress root on wordpress blog what is main directory of your site? open wordpress from root directory open wordpress in root keep it in subdirectory php point to subdirectory point index.php to wordpress point root directory to wordpress homepage point root subdirectory htaccess point to wordpress folder point url subdirectory point url to wordpress point url to wordpress directory point wordpress blog to root point wordpress blog to your root directory point wordpress to folder point wordpress to root point wordpress to subdirectory .htaccess point wordpress website directory root pointing directory index to wordpresses index pointing to wordpress directory pointing wordpress subdirectory to the root publish wordpress blog to root of dreamhost site publish wordpress root publish wordpress site to root publishing posts in a subdirectory wordpress publishing wordpress not root directory puplishing wordpress on the root folder put wordpress blog in root directory for seo? putting wordpress in root or not require(./wp-blog-header.php) root dir rewriteengine on wordpress root subdirectory root .htaccess in wordpress root directory dari homepage blog wordpress root installation wordpress 3. root of serve root url wordpress seo putting wordpress in subdirectory or root seo wordpress subdirectory set up wordpress to serve at root should i install wordpress blog in root or subdirectory seo show blog in root not index.php site address url "wordpress 3" root site:http://digitivity.org subdirectory wordpress ubuntu wordpress subdirectory ubuntu make wordpress root directory ubuntu wordpress root-directory ubuntu wordpress site url url point to root web serve from subdirectory as root website point to subdirectory as root what is main directory of your wordpress what is the "main directory" of wordpress? what is the root directory of your serve where is main directory of your wordpress word press root index wordpress 3 installation in a folder in root wordpress 3 root directory wordpress add file to root directory wordpress as root directory, and .htaccess wordpress blog directory index.php wordpress blog point to root wordpress blog subdirectory seo wordpress change blog. to root wordpress change directory from homepage wordpress change index to root wordpress change root directory when installed in subdirectory wordpress change to root url wordpress changing root directory 3 wordpress clutter root directory wordpress codes for root paths wordpress directory root wordpress dreamhost blog folder wordpress edit root dir file wordpress home page in root blog in subdirectory wordpress homepage in root wordpress homepage index root path chnage wordpress how to change index file to root directory wordpress htaccess not in root path wordpress htaccess subdirectory root wordpress in a directory but index.php in the root wordpress in a subdirectory but home page in root wordpress in main directory wordpress in root directory wordpress in root directory files in subdirectory wordpress in subdirectory seo wordpress index file in root directory wordpress install directory root seo wordpress install in subdirectory even if it is installed in root wordpress install in subdirectory .htaccess wordpress install root or in folder wordpress install subdirectory in htaccess wordpress installation directory root wordpress installed in a subdirectory htaccess wordpress installed in subdirectory blog in root wordpress keep root url wordpress main directory yahoo wordpress making subdirectory main directory wordpress modify root directory wordpress not on root seo wordpress not putting pages at root wordpress pages a root url posts subdirectory wordpress php root directory wordpress point folder wordpress point root to subdirectory wordpress power root subdirectory wordpress publish in root directory wordpress publish root directory wordpress publish to a subdirectory wordpress publish to root wordpress publish to sub-directory wordpress root directory index.php file wordpress root directory seo wordpress root directory, dreamhost wordpress root dreamhost htaccess wordpress root index wordpress root url wordpress serve from root wordpress serve subdirectory wordpress share root directory wordpress sharing root wordpress sub directory installation changed paths .htaccess wordpress subdirectory directoryindex wordpress subdirectory display posts on main page wordpress subdirectory drupal wordpress subdirectory root seo wordpress subfolder publishing -blogger wordpress yahoo dns root wordpress yahoo root wordpress yahoo url wordpress-3 htaccess subdirectory wordpress3 root url wordpress: root to index.php worpress 3 "in subdirectory" yahoo index.php wordpress yahoo install wordpress in root yahoo install wordpress root yahoo install wordpress root directory 2010 yahoo root wordpress yahoo show wordpress as root yahoo wordpress directory yahoo wordpress in root yahoo wordpress in sub directory yahoo wordpress index php yahoo wordpress install root yahoo wordpress on root yahoo wordpress root [how to point wordpress to main root]Related posts:
- TechCrunch Blog Gets Hacked Again & WordPress Security The technology blog, TechCrunch--which runs on WordPress, was hacked for...
- RedHat’s Fedora 12 Lets Users Install Software Without Root with PolicyKit The latest version of RedHat’s Fedora Linux distribution features the...
- Inside the Pantheon Backup and Migrate Archive I needed to create a archive of a site in...
- Showing Excerpts Instead of Full Posts on the Home Page in WordPress Some of my posts have been getting longer and longer,...
- Updating Your WordPress Blog Too Frequently: Avoiding Getting Banned from Ping Services When you publish a post, WordPress tells a number of...
Explore related content: root, subdirectory, WordPress


![[del.icio.us]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/delicious.png)
![[Digg]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/digg.png)
![[dzone]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/dzone.png)
![[Facebook]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/facebook.png)
![[LinkedIn]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/linkedin.png)
![[Reddit]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/reddit.png)
![[Slashdot]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/slashdot.png)
![[StumbleUpon]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/stumbleupon.png)
![[Technorati]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/technorati.png)
![[Twitter]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/twitter.png)
![[Yahoo!]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/yahoo.png)
![[Email]](http://digitivity.org/blog/wp-content/plugins/bookmarkify/email.png)


Katty,
Thanks for your comment. It’s my opinion that it’s better to serve the blog from the root directory to avoid unnecessary clutter in the URL, but at the same time putting the entire WordPress installation in the root directory makes for a mess, not to mention making it harder to integrate other PHP applications onto your site.
Hi There I’d like to congratulate you for such a terrific quality site!
Hi, thanks for coming to the site. Be sure to subscribe to the Digitivity RSS Feed for updates.
Bravo ;]
wow.. good idea, subdirectory become root directroy with simple code .htaccess
[...] have tried the instructions on this page: http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-i... without [...]
Very neat article. Keep up the good job
[...] WordPress to serve from the root instead of /wordpress?I have tried the instructions on this page: http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-i... without success.I have tried changing the document root to the folder serving the wordpress [...]
I don’t usually answer to posts but I will in this case. Helpful article. Where did you got all the material from? Regardless thank you for this great post!
I love whenever you speak about this type of stuff in your posts. Perhaps might you continue this?
My partner and I absolutely love your blog and find the majority of your post’s to be what precisely I’m looking for. Would you offer guest writers to write content to suit your needs? I wouldn’t mind composing a post or elaborating on a number of the subjects you write related to here. Again, awesome website!
Pretty section of content. I just stumbled upon your web site and in accession capital to assert that I get in fact enjoyed account your blog posts. Any way I will be subscribing to your feeds and even I achievement you access consistently quickly.
Zapraszam na browca do Bilgoraja
Praktykant/-ka Praca: lubelskie i okolice Start People Professionals –Wsparcie w realizacji projektów rekrutacyjnych na stanowiska managerskie średniego i wyższego szczebla;Edycja oraz publikacja ogłoszeń rekrutacyjnych;Analiza oraz wstępna selekcja dokumentów aplikacyjnych;Prowadzenie wywiadów telefonicznych;
Upload your images/photos to our free image hosting servers and share them with your friends, family,and collegues.
Hot Linking limit: 1 GB of bandwidth per Image/month
Supported Image Formats: png, jpg, jpeg, gif, bmp
Maximum Filesize: 1 MB
Have you ever regarded as adding extra videos to the blog posts and keep the readers extra entertained? I mean I just read during the entire article of yours and it was very very good consider I’m really a visual learner,I found that to become more useful. Just my my idea, Good luck
i like this article.it gives me some information that very important
Sriwijaya Air´s last blog ..Harga Tiket Pesawat Sriwijaya Air Airlines Terbaru
Looking forward to read more of your articles in the future. Congrats!.
I’d bookmarked http://digitivity.org/10/how-to-serve-your-wordpress-blog-from-the-root-directory-if-its-installed-in-a-subdirectory so my fellows would be able to find out about your blog post too. I bascially entered How to Serve Your WordPress Blog from the Root Directory If It’s Installed in a Subdirectory | Digitivity as the entry title in my bookmark.
1 potato
Cool, thanks
Pasang Iklan anda di website kami, secara tidak langsung anda juga sudah memasangkan ke ratusan website lainnya. Sistem iklan kami OTOMATIS memasukkan iklan anda ke jaringan iklan baris kami (tanpa menggunakan software iklan atau mengisi captcha) secara GRATIS. Hal ini akan meningkatkan efisiensi waktu dan mengoptimalisasikan hasil iklan anda, baik di listing iklan maupun di Search Engine.
Thanks a lot for providing individuals with an exceptionally wonderful chance to discover important secrets from this web site. It is usually so pleasing plus jam-packed with fun for me and my office fellow workers to visit your site more than 3 times in 7 days to see the new guidance you have. And indeed, I’m just always fulfilled for the staggering tips and hints you serve. Certain two points on this page are definitely the very best I have ever had.
Hello.This article was extremely remarkable, particularly since I was browsing for thoughts on this subject last Monday.