• 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-Ghosh Tagged 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

This Article Has Been Shared 382 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

  • Adding Schema.org Structured Data in Genesis Theme

    Adding Schema.org Structured Data in Genesis Theme without using any plugin is quite easy as Genesis has great documentation and has excellent existing markups.

  • 100 Tips for Building and Maintaining a Successful Blog

    100 Tips for Building and Maintaining a Successful Blog is the 2500th article published on this website.Free Infographic is also included so that you print it.

  • Bootstrap Genesis Child Theme : Do it Yourself Guide

    Bootstrap Genesis Child Theme can easily be created by modifying the default CSS of existing Eleven40 Child Theme plus some custom templates. Here is how.

  • YouTube Tips : Embed Playlist, YouTube’s audio, YouTube HTML5 Player

    Here are YouTube Tips to Embed YouTube Playlist, YouTube’s audio, YouTube HTML5 Player in any webpage or WordPress page or posts. Let us see how we can do them.

  • Schema.org for WordPress : Advanced Tips for Genesis 2.0

    Schema.org for WordPress is nicely integrated by Genesis 2.0 but in terms of semantic complexity, it requires some advanced hand made tweaking.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (21K Followers)
  • Twitter (5.3k 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

  • 5 Tech Tools to Help With Business Growth April 22, 2021
  • Corona Pandemic as Cloud Adoption Driver April 20, 2021
  • How to Save Electricity Consumption During the Pandemic April 20, 2021
  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "WordPress Subfolder Installation To Root for Pre-existing Installation," in The Customize Windows, December 27, 2012, April 22, 2021, https://thecustomizewindows.com/2012/12/wordpress-subfolder-installation-to-root-for-pre-existing-installation/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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