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
-
Opencart vs. Wordpress/Woo
There are two issues facing me today. One is that my two e-commerce stores need updating after some 4 years, but I am seriously considering switching from Opencart to Wordpress/Woo. Opencart is a nightmare to work with at the best of times. Whenever I try to edit the footer of my current sites for instance nothing changes, the customisation of pages is sloppy and although the site works fine for perhaps the first 6 months, anytime after that it just slowly falls apart. Wordpress however features incredible customisation, is easy to edit the code but it lacks the backend functionality that Opencart is good at. Does anyone know the downsides of changing to Wordpress/Woo in respect to SEO?
Web Design | | moon-boots0 -
2 or more wordpress installs on 1 domain
Hi ....I need to know if anyone has any concerns of running 2 or more WordPress installs on one domain and if so what would the concerns be. The situation is that we have a static html site that has a WordPress blog....and it is installed in example.com/blog/ . We will upgrade the static site to WordPress and this WordPress install will be in example.com/monkeys/ and then we will point its address to the root and make all other needed changes when ready to go live...but the install will stay in its own directory. So bottom-line is we have one domain with two WordPress installs that are each installed in their own sub directory and run from their own independent databases. There are quite a number of reasons for us to want to do this but I wont get into that......I just want to know if anyone has any concerns with this setup? The research we have done says its OK as well as our hosting provider....but before we get cracking we thought maybe one more "educated" input would make us feel more comfortable. Thanks
Web Design | | nomad-2023230 -
Wordpress Theme is blocking alt tags. Does anybody know of any special plugins?
We have a special wordpress theme for nataliecass.com. Unfortunately the theme is blocking all the alt tags (this is a photography website...alt tags are very important). Does anybody know of any special WP plugins for alt tags? Thanks
Web Design | | VanguardCommunications0 -
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 -
Has anyone had luck doing SEO with a wordpress website built with Parallax?
Has anyone worked with Parallax before? Is it possible and worth it to do SEO on a wordpress site that uses Parallax? I have a friend that is asking. Currently when you navigate their site there is only one URL (home page) and one title tag.
Web Design | | webestate0 -
Please help. can't change widgets in wordpress
hey everyone, i am having a weird problem. for some reason. all of a sudden (without me changing ANYTHING) my widget page in the admin dashboard will not let me edit anything what i mean is, i login, go to the widgets page, and then the dropdown menus that you drag widgets into will not let me expand to drop widgets in them. was there a wordpress update i missed? who should i contact? what if i delete the theme and re-install. will i have to change ALL the settings back again?
Web Design | | TylerAbernethy0 -
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 -
HTML vs WordPress
Which website gets better SEO results? I was told that HTML is crawled better than WordPress. Which is a more expensive website to design? What are the pros and cons of each?
Web Design | | CapitolShine0