How to move my blog from subdomain to subfolder?
-
Not an unusual situation, I have a blog on blog.domain.com it has quite a few blog postings. The platform is old and will be scrapped, but the blog content itself is going to be moved to domain.com/blog.
The current process is we are manually listing all linked to/content pages and we are going to 301 redirect them to their counterparts on the new blog. This is going to be a tedious process.
A) Is there any way to automate the moving of the blog?
B) What is the best way to do the massive 301 redirect, php headers, .htaccess? Should we move the individual pages with redirects, or redirect the domain in the .htaccess (this will be very difficult to match all the titles and file structure)?
-
Hi Keri.
You're right! I am not a professional in the matter and I am trying to catch up little by little.
Thanks for your advice!
-
This thread is actually four years old, and the original poster mentioned that the problem was solved so no worries! You might want to look at more recent questions, as SEO advice can change as the search engines change.
-
We solved it, our web programmer wrote a program to scrape all of our posts and turn them into a format that imported into wordpress. As far as the redirects we kept the page titles the same and did a sitewide 301 that sent them from blog.example.com to example.com/blog/
Although I would still like to grab Richard's php script for doing this in a more efficient manner in the future.
-
It will if you add r=301 to the last line like so:
RewriteRule ^(.*)$ /blog/$1 [L,R=301]
-
Spencer, did you get this taken care of off-line, or is this question still open?
[Keri Morgret, SEOmoz Associate]
-
Would you mind posting or messaging me the correct script? It would be a great help, thanks.
-
Yup, that will do the job of relocation, but it does not 301 the link and therefore you will not transfer link juice.
-
Found this one:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^blog.mysite.com
RewriteRule ^(.*)$ /blog/$1 [L] -
I am mobile, so excuse the typos Using PHP, grab the incoming title and do a 301 header redirect to the new location. No need to mass 301 in .htaccess. If you need the script, let me know
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
-
Heroku, Subdomains, redirecting to different servers & SEO
Hi all, I've got a big question. I'm helping out with digital marketing at a non-profit that I volunteer with. We're working on developing an on site blog for our site, because we've realized we need that middle of the funnel content. Our issue has been taking up much of the developers' time & we're really working out the kinks with the system, so I'm trying to alleviate that with a light blog solution. We're considering installing a wordpress site on a separate server from the main site & sending traffic over to that. The primary questions: Do we negatively impact our main site by having a link to a different domain in the topnav? Do we positively impact the main site by developing SEO content on a redirected&masked URL? What are the ramifications of redirecting a subdomain to another server? Would we be better off using something like Ghost? A good example would be: Visit theMainDomain
Technical SEO | | Alternatively.marketing
Click: blog on topnav
Redirect to: theSecondDomain/blog [masked as theMainDomain/blog]
Click: home on topnav
Redirect to: theFirstDomain/blog0 -
Is this a Risky Blog Move?
I have a client who's thinking of placing their blog on a separate domain because the plug-ins and various other functionality is becoming bulky and slowing things down for the main site. There will be a 'Blog' link on the company's website navigation, just as there is now, that will take people to the blog. As an SEO person, this seems like a bad idea, even if we set up 301s from all the old posts to all the new ones. In my research I came across these two points: All backlinks to blog posts contribute directly to a website’s OVERALL SEO strength because those backlinks are pointing to your main domain. Removing them may reduce overall link juice to the site. Simply having fewer content pages on the site will cause entire site to rank lower because Google loves content-rich authority sites. Does anyone know this to be true for sure? Thanks,
Technical SEO | | Caro-O
~Caro0 -
Blog Comments & nofollow to follow backlink ratio
Hello I have a website with 2000 nofollow links backlinks and about 20 follow links. It is currently ranking 11<sup>th</sup> on Google. The websites that are outranking it have lower ranking stats and in some cases only 2 follow links. Most of the nofollow links are blog comments, could this be what is dragging down my stats. The only factor my website is worst on is the number of server requests per load, which is 194 as it is a theme. Blog comments can be very difficult to remove; I created these several years ago before I knew too much about SEO. Most of them are on other websites in same niche. Would I be best to ask website owners to delete my comments or restart on a new domain. Thanks Rob
Technical SEO | | tomfifteen0 -
My blog page isn't ranking in Google
Hi, I noticed that my blog page on my site isn't in Google when i search for full URL link http://www.asggutter.com/blog/ instead i see page that isn't even working asggutter.com/sitemap.xml screen shot http://screencast.com/t/6OVFLwL8nTL How i can i fix that. Thanks
Technical SEO | | tonyklu0 -
How to recover from duplicate subdomain penalty?
Two and half a weeks ago, my site was slapped with a penalty -- 60% of organic traffic disappeared over 2-3 days. After investigating we discovered that our site was serving the same content for all subdomains, and Google somehow had two additional subdomains it was crawling and indexing. We solved the issue with 301 redirects to our main site (www) a couple of days after the drop -- about two weeks ago. Our rankings have not recovered, and the subdomains are still indexed per Webmaster Tools. Yesterday we submitted a Reconsideration Request. Will that help? Is there any other way to speed up the process of lifting the penalty? This is the site: http://goo.gl/3DCbl Thank you!
Technical SEO | | tact0 -
How is Google finding our preview subdomains?
I've noticed that Google is able to find, crawl and index preview subdomains we set up for new client sites (e.g. clientpreview.example.com). I know now to use "meta name="robots" and robots.txt) to block the search engines from crawling these subdomains. My question though, is how is Google finding these subdomains? We don't link to these preview domains from anywhere else, so I can't figure out how Google is even getting there. Does anybody have any insight on this?
Technical SEO | | ZeeCreative0 -
Old Blog
I have an old blog that I started long ago and it has tons of content. I'm thinking about migrating it my current blog but am worried about panda and bringing over mediocre content. The content is fine, not bad not good. Should I bring it over or should I just delete the blog?
Technical SEO | | tylerfraser0 -
Subdomain to Subcategory migration for an active news website blog
A very active news website has a very active blog as a sub-domain. For all good SEO reasons, they want to transfer the blog from a subdomain to a subcategory. Now, the issue is this blog is very active, updated daily and lots of people comment on it. So how should the website go about making this change while causing minimal seo loss and ensuring that the commenting process remains active and on going. A detailed answer would be much appreciated! Thanks! I cam accross this blog post that guides on how to change a subcategory to a subdomain: http://devilsworkshop.org/moving-a-wordpress-blog-from-a-subdirectory-to-subdomain-preserving-permalinks/. Any words on this would also be appreciated!
Technical SEO | | RishadShaikh590