• 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 474 Times!

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

  • 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

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

  • Four Foolproof Tips To Never Run Out Of Blog Ideas For Your Website March 28, 2023
  • The Interactive Entertainment Serving as a Tech Proving Ground March 28, 2023
  • Is it Good to Run Apache Web server and MySQL Database on Separate Cloud Servers? March 27, 2023
  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023

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, March 30, 2023, https://thecustomizewindows.com/2012/12/wordpress-subfolder-installation-to-root-for-pre-existing-installation/.

Source:The Customize Windows, JiMA.in

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

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT