• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » WordPress Subfolder Installation To Root for Pre-existing Installation

By Abhishek Ghosh December 27, 2012 9:48 am Updated on December 27, 2012

WordPress Subfolder Installation To Root for Pre-existing Installation

Advertisement

WordPress Subfolder Installation To Root for Pre-existing Installation explains how easily you can actually change the URLs from you previous subdirectory. WordPress Subfolder Installation To Root falls among Moving WordPress documentation in official WordPress.org website. As it appears, new users who probably with little understanding wrongly or deliberately installs WordPress on subdirectory like /blog/ or /wordpress/ when wants to move one level up works more than actually needed.

 

WordPress Subfolder Installation To Root for Pre-existing Installation : Practical Example

 

 

Typical odd installation of WordPress is Matt Cutts blog :

 

Vim
1
http://www.mattcutts.com/blog/

 

Those who are not aware of who is Matt Cutts, can search the web for details. The basic thing is that, probably Matt wanted a static custom home page and blog on the sub directory. Although actually it is not needed, with WordPress we an create a Static page; it was intentional. Take that he decided to move the WordPress Subfolder Installation to root, that means WordPress URLs will be without the /blog/ part in url.

Advertisement

---

But if it happens accidentally or wrongly or you decided to move one level up for any reason, what you will do ? Will you Install a new WordPress on root and move the database selectively in the way we wrote for database repair with moving the wp-content folder ? No. That is basically too much messy way to move WordPress Subfolder Installation To Root. Because WordPress has a nice function to make it easy. Reference WordPress Documentation :

 

Vim
1
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install

 

WordPress Subfolder Installation To Root for Pre-existing Installation : Steps

 

Basically three steps. The official documentation too complex to understand because of a kind of roundabout language.

  • First move (not copy) the index.php file from the subdirectory of the WordPress installation to the root of your website.  Then open it in a text editor to Edit. The required change is :

 

From :

Vim
1
require('./wp-blog-header.php');

To :

 

Vim
1
require('./sub-directory/wp-blog-header.php');

 

This sub-directory can be /blog (in case of Matt Cutts in example) or anything like /wordpress.

 

 

  • Second there is need of an .htaccess file, which is used for pretty link / permalink structure and other plugins like WorsPress Cache Plugins. Copy (not move) the .htaccess file from the subdirectory of the WordPress installation to the root of your website.
  • Before doing the first, always remain logged in your WordPress. Go to the General panel on Settings in WordPress Admin panel. In the field Site address (URL); change the address to point towards the root directory’s URL :

 

WordPress Subfolder Installation To Root for Pre-existing Installation

 

WordPress Address (URL) means where the files of WordPress are located. Site Address (URL) means what will be displayed to the public. As basically the URL are virtual, it works very easily. Go to the Settings > Permalinks settings and just click the button to update your Permalink structure. This actually writes the .htaccess file properly.

 

WordPress Subfolder Installation To Root for Pre-existing Installation : Other Needed Changes and More Tips

 

 

You have to update WP Super Cache or WP Total Cache if the settings was for mod_rewrite. XML Sitemap url also needs to be changed. If you repair the database selectively in the way we wrote for database repair and later change in this way, you can basically repair your working website without any interruption or downtime.

 

Abhishek-GhoshTagged With wordpress installation , install wordpress in subfolder access it from root , Using a pre-existing subdirectory install: http://codex wordpress org/Giving_WordPress_Its_Own_Directory
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to WordPress Subfolder Installation To Root for Pre-existing Installation

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Repairing WordPress Database : Using Cloud Database Server

    Repairing WordPress Database is easy by using Cloud Database Server like from The Rackspace Cloud which provides MySQL database server with PHPmyAdmin software.

  • PHP Snippet to Hide AdSense Unit on WordPress 404 Page

    Here is Easy PHP Snippet to Hide AdSense Unit on WordPress 404 Page to Avoid Policy Violation and Decrease False Impression, False Low CTR.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy