Wordpress in a subdirectory?
-
Hi, I've used this method a few times of developing Wordpress websites in a subdirectory and only moving the index.php file to root when the site is ready to launch. (full details of how this is done in the link below)
The sites I've used this on all index correctly and rank for their terms, so I haven't seen any negatives at all. However moving forward I would like to know for sure if this is indeed SEO-friendly?
note: The site functions as any other at www.domain.com, it's only the Wordpress install & admin etc. resides at: www.domain.com/wordpress/ -the pages are served to root ie. www.domain.com/about)
Details.. WordPress from a subdirectory to the root directory:
http://askwpgirl.com/how-do-i-move-wordpress-from-a-subdirectory-to-the-root-directory/
thanks in advance.
-
Thanks for your reply Marcus, and also for the details for moving to root. That may come in handy, and anyone else who stumbles across this thread too.
It's good to know there appear to be no issues for SEO in Wordpress residing in a subdirectory, yet I am appreciating more and more the need to keep things as simple and straight forward as possible.
Greg
-
Hey, I have been working like this for years and my own site uses this approach. However, I have come across a few premium themes and a smaller amount of plugins when it can cause a few problems, usually these are things you can easily hack in the source but it may break things when you update your theme and you have to hack again (yoothemes always have this bug).
So, I tend to keep sites in the root now if possible just to simplify things as much as possible.
Moving the site to a different URL / Directory is a pretty simple process:
1. Move all of the relevant files
2. Run the following queries in PHPMyAdmin (or whatever DB tool you use)
**UPDATE wp_options SET option_value = replace(option_value, 'OLDSITE', 'NEWSITE') WHERE option_name = 'home' OR option_name = 'siteurl';
UPDATE wp_posts SET guid = replace(guid, 'OLDSITE','NEWSITE');
UPDATE wp_posts SET post_content = replace(post_content, 'OLDSITE', 'NEWSITE');
UPDATE wp_postmeta SET meta_value = replace(meta_value, 'OLDSITE', 'NEWSITE');**
- URLs are full paths without a trailing slash so
OLDSITE = http://www.url.com/subdir
NEWSITE = http://www.url.com
Obviously, back up the DB and test the water first but I have used this SQL a bunch of times (even in the last week) to move sites from one server to another (testing to live) or to even move sites from a sub directory to the root. Or, even to move sites from a sub directory on a testing server to the root on the live space.
So, it is not an essential change by any means but in the spirit of keeping things as simple and straightforward as possible, the root tends to work a little better in my experience.
Hope that helps!
Marcus -
Having worked quite a bit with WordPress (since version 1.2) I can't think of an SEO reason why this would cause a problem.
The only potential gotcha that comes to mind is that I'm not sure how well WordPress' one-click updater feature is going to work when WP has been spread amongst multiple directories.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
WordPress redirects are taking too long to navigate: Anyone ever faced this?
Hi community, We are using wordpress website. We have redirected hundreds of URLs from wordpress redirect manager for last 10 years around. Suddenly from last one week, the redirects are taking too long to navigate to the pages; like around 1 minute. Could you anybody face the same issue? Please help me on this. Thanks
Web Design | | vtmoz0 -
Migrate from HTML to Wordpress?
My website is currently HTML because in the past, I liked a more hands-on approach and liked to have a high level of control over my code. My organic search rankings are very good. I do have a blog on wordpress now. Despite all of this, I am considering moving to Word Press. The reason is that the fancier website techniques are very easy to achieve with a wordpress theme or plug-in. And some changes, such as menu, can be done at the high level versus the entire site. Auto-responsive is built within the themes, so anytime a new device comes out, they update it so I don't have to. And, I would like to be more tightly integrated with my blog. I am also getting to the points that I have no time to code and would like something a little simpler to maintain. BUT, I am scared to make the move and then completely lose my organic rankings. I know that I will have to 301 all of the pages. And I know that I will have to maintain all my current on-page SEO by paying close attention to the headers and whatnot. Do you all think that it is worth making the switch? Is there a good chance my organic rankings will drop?
Web Design | | CalicoKitty20000 -
Wordpress SEO/Tag plugin recommendation for sports (soccer) website
I own a Wordpress website which covers soccer in the DC MD VA area called DMV Soccer http://www.dmvsoccer.com/ We write weekly recaps where we tag a player who has scored a goal or performed well in a game. For each player, obviously, a tag is created. What I'm looking for is a plugin or solution that would allow me to tag a player, but also automatically assign a team to that player so that the team name and player's name are optimized on the individual player's tag page. So if I were to tag George Murphy on a recap, and I assign him to a team, let's say DC United. The tag page would have a title, something like: George Murphy Soccer Player for DC United and the meta description: George Murphy, soccer player from MD who players for DC United archives Or something similar, if that makes sense. Should I skip using tags and instead start assigning each player as a sub-category under each team? I'd like to try to avoid that, because not each category will be based on a player. Any suggestions in terms of existing plugins or other recommendations?
Web Design | | georgetsn1 -
Wordpress Plugin To Capture Form Completion Data, Before Visitor Hits "Submit"?
Greetings MOZ Community: Visitors frequently start to enter contact information in the forms on our website, but then chicken out and don't hit the submit button. I noticed this watching the recordings of visitor web site visits using Mouse Flow. Is there a Wordpress Plugin that would allow us to capture data entered in forms, where the visitor does not finally hit the "submit" button? Obviously this would be very, very valuable as this scenario occurs in one out of three or four instances. Thanks!!!
Web Design | | Kingalan1
Alan0 -
Wordpress or Joomla?
I'm very interested on what users here use and why? From my experience regarding online SEO, both CMSs are equal. However, the ease of use is a different story. While both systems have a learning curve, wordpress is the easiest to learn thus making it probably the most popular CMS today. Joomla on the other hand takes a bit more time to understand but when learned, can be quite flexible. So if anyone here is kind enough to add their thoughts, I'm all ears!
Web Design | | kumidiaweb0 -
From Google Sites to Wordpress - Anyone Ventured this SEO terrain?
We have a few sites in Google Sites - and they are ugly! We have a majority (40+) of websites in Wordpress. But we have a few websites just stuck on Google Sites, and since Google won't let you fully edit the HTML, add scripts, or implement any technology since 2000, we want to move. The sad problem - the Google sites are ranking well. We rank well in Manhattan, Atlanta, Dallas, and Philadelphia. The problem is - the sites do not give much room for growth - and the bounce rate is high because they are so ugly. Has Anyone moved from Google sites to Wordpress? Should we just stay with Google and bite the ugly bullet? My fear is that these sites will not allow for growth. It is hard to update them and even harder to make them look nice. To get a sample - beware: www.counselingphiladelphia.com Even another reason to leave: The slider is non-semantic and terrible SEO. Google won't allow a slider script with tags and a hrefs, so the only way to implement a slider is through a Google Docs Presentation that keeps sliding. I know - terrible SEO (#donthate) but we needed something. Any advice and thoughts would help! Thanks Mozzers!
Web Design | | _Thriveworks0 -
Wordpress Pages not indexing in Google
Hi, I've created a Wordpress site for my client. I've produced 4 content pages and 1 home page but in my sitemap it only says I have 1 page indexed. Also SEOmoz only finds 1 page. I'm lost on what the problem could be. The domain name is www.dobermandeen.co.uk Many thanks for any help. Alex
Web Design | | SeoSheikh0 -
WordPress blog hosted on GoDaddy domain mapping help
We set up a WP blog that's hosted through GoDaddy. For various reasons, we purchased a URL to use to get through the technical build and set up and are trying to map that to a subdomain of our company website. (We can't host it on our own server, unfortunately). My question is: for WP blogs hosted via WP you can buy a domain mapping upgrade and I'm trying to find a similar plugin that could offer the same thing that would apply to our GoDaddy hosting and point to our subdomain (GD apparently doesn't offer the domain mapping). Anyone have any thoughts, please?
Web Design | | josh-riley0