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
-
Can I safely asume that links between subsites on a subdirectories based multisite will be treated as internal links within a single site by Google?
I am building a multisite network based in subdirectories (of the mainsite.com/site1 kind) where the main site is like a company site, and subsites are focused on brands or projects of that company. There will be links back and forth from the main site and the subsites, as if subsites were just categories or pages within the main site (they are hosted in subfolders of the main domain, after all). Now, Google's John Mueller has said: <<as far="" as="" their="" url="" structure="" is concerned,="" subdirectories="" are="" no="" different="" from="" pages="" and="" subpages="" on="" your="" main="" site.="" google="" will="" do="" its="" best="" to="" identify="" where="" sites="" separate="" using="" but="" the="" is="" same="" for="" a="" single="" site,="" you="" should="" assume="" that="" seo="" purposes,="" network="" be="" treated="" one="">></as> This sounds fine to me, except for the part "Google will do its best to identify where sites are separate", because then, if Google establishes that my multisite structure is actually a collection of different sites, links between subsites and mainsite would be considered backlinks between my own sites, which could be therefore considered a link wheel, that is, a kind of linking structure Google doesn't like. How can I make sure that Google understand my multisite as a unique site? P.S. - The reason I chose this multisite structure, instead of hosting brands in categories of the main site, is that if I use the subdirectories based multisite feature I will be able to map a TLD domain to any of my brands (subsites) whenever I'd choose to give that brand a more distinct profile, as if it really was a different website.
Web Design | | PabloCulebras0 -
Does having too many wordpress portfolio pages with little content hurt a site's SEO?
I have a site that is for a service company, not image based like a photographer or artist. We utilize the Portfolio feature to create a gallery of floor coating finishes (images of all the flooring finish options available) but this solution has created /portfolio/file-name pages for each image. These pages have no other content besides the image. I've run SEMrush audits on this site which shows a high percentage of pages with low text/code ratio and duplicate content (a lot of the finishes have very similar names). This site has been extremely slow to improve any visibility online (more than 9 months) and I'm wondering if this is a factor by possibly having a negative effect on our site. We initially chose the portfolio option because it was the best-looking solution for our users but we can certainly change it to another format if that is better. Thanks!
Web Design | | WillGMG0 -
In Wordpress getting marked as duplicate content for tags
Moz is marking 11 high priority items for duplicate content. Just switched to wordpress and publishing articles for the site but only have a few. The problem is on the tag pages. Since there aren't very many articles so when you go to the tag pages it lists one or two articles and hence there are pages with duplicate content. Most of the articles have the same tags / categories. Perhaps I'm using too many tags and categories? I'm using about 7 tags and around 2 categories for each post / event. I've read the solution is using canonical tags but a little confused on which page I should use for the tag and then I believe I need to point the duplicate pages to the correct page. For example, I have two events that are for dances and both have the same tags. So when you visit, site.com/tags/dance or site.com/events both pages have the same articles listed. Which page do I select as having the original content? Does it matter? Does that make sense? Someone was also saying I could use the Yoast plugin to fix, but not really seeing anything in the Yoast tools. I also see 301 redirects mentioned as a solution but the tag pages will be changing as we add new articles and they have a purpose so not really seeing that as a solution.
Web Design | | limited70 -
Does anyone know how to find functions/codes/etc in WordPress?
Right now, I'm working on solving a relatively easy WP issue (easy, because someone told me what to do. Thanks iNetSeo). I have to replace: <span class="post_date"></span class="post_date"> and replace it with <span class="post_date date="" updated"=""></span class="post_date> But, I can't find the "_<span class="post_date">"</span class="post_date">_For a number of my WP problems, the hardest part is just located the code/function/markup I need to replace. Does anyone know where this might usually be stored on a website? Also, does anyone know if there's any tool that would allowed to just put "various function" in a search box, and wordpress take you to where it was on the backend of your site, so you could edit it? I included a screenshot of our editors, but I already opened them all, pasted the code in Ctrl-F to no avail, but maybe I missed something. Thanks for helping with my frustrating scavenger hunt! Ruben ASTPPfA
Web Design | | KempRugeLawGroup0 -
Are wordpress themes like from themeforest bad?
Hi to all. Ok so as I read around the internet I see a lot of people who dislike theme forest and using their themes. I have a them from them, the Avada theme. Ok so they have made a TON of money. But would so many people buy the theme if it was that bad? Going forward, my question is, are wordpress themes a bad thing to do? I feel like its peer pressure to switch to a framework like Genesis. There are so many people who state that a framework and child theme is the way to go. But I am using this avada theme and having under 2.5 sec load times. A lot of people say the code is bloated and is horrible. I understand this and got a cache plugin that makes a huge difference. But I do want to learn and I do want to approach websites in a positive way. So if you have any thoughts on themes, please tell me your thoughts. I am no developer, so they seem to work, but is it at a price? Like bad seo and serps? Thank you chris
Web Design | | asbchris0 -
Responsive Web Design WordPress Template Suggestions
Does anyone have any RWD WP templates they would suggest? It's for a friend of mine that is starting a local solar panel installation company. For the beginning, he likely will not have more than a handful of categories and subcategories. I'd say no more than 50 total pages. Any suggestions would help. He doesn't want to spend more than $50 - $100, but he's not married to that figure if it's worth it. Thanks everyone, Ruben
Web Design | | KempRugeLawGroup0 -
How do I learn how to build custom wordpress websites?
Is wordpress a good platform to build websites with? If so, what are some good resources to learn how to build custom websites using wordpress?
Web Design | | Lael0 -
Finally have a budget for a great seo ecommerce site but need help choosing wordpress, joomla, modx, magneto or? Thank you in advance for your generosity of time
We finally have a budget and want to dump our intuit/homestead site www.originalartbroker.com Our budget is 5k-10k but could do more if needed. I am slowly catching my competition with this homestead site that I built. But I do realize it is time to step back, figure out what is best, and hire a pro to get the job done. I am green in the seo and web development arena so please go easy on me and please help to point me in the right direction. Just went out on a limb a couple years ago playing with homestead.com site software and built what we have today. Didn't know anything about website development...it sort of just happened. I feel and know that homestead.com solution is hindering what we could be doing due to the bloated nature of the site and inability to perform such task as 301 redirects etc.... I have been able to slowly attain first page seo rankings on keywords based of the artists we carry using this po-dunk homestead platform to build my site after a ton of work education thanks to seomoz and a lot of you. But, have never asked for help and could really use some generosity of time in explaining a solution that would work best for our business. Do we just go with a wordpress site that is similar to our current setup and use their plugins? Do we use a cms software solution like magneto or joomla? We will only have 200-300 pieces at any given time. We are constantly selling and buying new pieces providing us content. We are need of a site that can perform well in terms of seo. I have heard of a lot of people talking about joomla, wordpress, and magneto. Would like to be able to have a product catalogue that ultimately sends whatever inventory we are uploading to our social sites and blogs so I don’t have to pump the product out to all of these sites. We offer free custom framing with our pieces and it would be nice to have a program that could wrap the photos of the pieces with the different frames for our customers. When I add a new piece I would like this software to have a predesigned product page that it plugs the information into. I would like it to create the url extension based of the artists name, medium used, and piece name to create unique and individual urls. I would like it to also create its own H tags throughout that product page according to the artist name description, and medium used. I would like to be able to sink this up to google merchant and other sites to carry our product. Bottom line is we sell art. We sell pieces by specific artists. We are constantly buying and selling. I need something powerful that keeps up with our content
Web Design | | forecastedinvestments1