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
-
J-Son Schema via tagmanager for Blog Post Listed at Blog Category Page
Hi Experts, I am implementing J-son Schema via tagmanager. For my blog category page i have many blog post listed so now I have to use blog posting at category page via tag manager so can anyone guide me how to implement? Hope you are getting my question. Like my blog site - a) abcd.com/blog b) blog category - abcd.com/blog/cloth d) Blog Post - abcd.com/blog/cloth/ my-favourite-dress. My query is at this page - abcd.com/blog/cloth many blog post listed. So I have to implement for all post "@type": "BlogPosting" via tagmanager so how to do that? Without tag manager I know how to implement via loop but via tag manger dont know? Thanks!
Technical SEO | | Johny123450 -
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 -
Mass HTTP to HTTPs move
Hi, As as part of an on-site SEO optimisation process, we've identified moving over from http to https - this is also in part to ensure our on-site forms are secure. In our industry our website has a high traffic volume (top 2 in the industry), we are concerned what impact the 301-redirecting from http to https would have on our organic traffic, both in terms of how Google would react to this mass-301 redirect plus the loss of 'search value' of inbound links. Privacy issues aside, would the minor quality-signal improvement be worth the move? Anyone have experience with such a move - was the outcome positive? Many thanks, Jason
Technical SEO | | Clickmetrics0 -
Redirect Impact - Moving From SEOmoz to Moz
Hey Guys, This has been on my mind ever since the big announcement, so today I did some searching around for some posts/talk about what the impact of their full site redirect has been for them and didn't find anything. Have they posted on this or are there any threads that I'm missing out on? I'd love to hear more about what the impact has been or any general thoughts/insights people may have. Thanks!
Technical SEO | | TakeLessons
Jon1 -
Moving most (not all) content to another domain
Hi there, My company website has 3 main sections, two of those sections (each containing approx. 50 pages) will be moving to a separate website. The new website will also be owned by the same company. The new domain does not yet exist. I read this guide http://www.seomoz.org/blog/seo-guide-how-to-properly-move-domains , its very good, however it refers to moving the whole domain to a new URL. Are there any specific differences to consider in my situation for a partial move? Many thanks in advance! Nigel
Technical SEO | | Richard5550 -
Subdomains
Hello Seo Experts, Can any one help me with this issue... I do have issues with my subdomains, My site name is http://www.bharatdesi.com, should I have subdomain http://www.bharatdesi.com/hyderabad this way or hyderabad.bharatdesi.com. Please any can answer my question, which way I have to organize my subdomains... and also give me some examples.. Thank you.
Technical SEO | | Vinss0 -
Passing SEO value from a subdomain
Hi Everybody, I have built a website (http://rugby.europcar.ie) which has gone viral and getting huge amounts of traffic world wide. The problem is, all the Facebook shares, tweets and other social traffic is all referencing the subdomain, and now www.europcar.ie where I want to build rankings. What are my best options for referring this ranking power to my main domain? Thanks in advance Ronan
Technical SEO | | notnem0 -
Impact on domain when using a subdomain for majority opf site content
Hello, We're looking to use a subdomain for a bookings engine that will also host the majority of our site content as it wil house the details of the courses that we'll be selling online. All content is currently available on www.existingdomain.co.uk A few pages will remain here but the majority will ultimately be hosted on a different IP address under a subdomain: courses.existingdomain.co.uk I am a little concerened about search engine reaction to this content separation. Would this approach dilute the rankings of www.existingdomain.co.uk? Is there anything else we need to be mindful of? We have alternative options if this is a real SEO faux pas. Thanks
Technical SEO | | Urbanfox0