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
-
How to reduce blog Spam Score? It it effect in All type of blog
Hi, I am working on blog , and a few days ago when i check the spam score rise up to 1 to 10 ..i have searched many method on internet but it is not works. i am very worried about this. is it problematic. how can i fix this here is the blog - Jonakaxom Can anyone explain about this . what should i do now.....
Technical SEO | | Tormura0 -
Blog not ranking for my name
Hi everyone. I'm new here so apologies if I'm not asking an appropriate question - just let me know! Can anyone help me figure out why my blog (https://www.jamescrowley.net/) isn't ranking at all for my name? I've run it through the standard Moz audit tools and it hasn't picked up any major issues. It ranks fine for my name plus " CTO", but doesn't appear anywhere in the top 50 without that qualifier. I realise there are many other 'James Crowley's to compete with but weirdly even my GitHub profile page appears to rank higher (https://github.com/jamescrowley) I moved the domain a while back (18 months+) and I used to rank highly, but it never seems to have recovered (all the standard redirects are in place, and told Google at the time about the move). Any suggestions would be very much appreciated!
Technical SEO | | james.crowley0 -
Moving a subdomain to subfolder with CNAME
Hi all, We have our docs in a subdomain on GitHub and looking to move it into a subfolder. Github offers the ability to redirect via CNAME https://gitbookio.gitbooks.io/documentation/platform/domains.html I am getting conflicting information on if this will work or cause duplicate content and hurt our SEO.
Technical SEO | | kate.hassey0 -
Blog Location
We are planning on redesigning our homepage and are thinking of moving the location of our blog. Currently it is part of the main menu with a tab "Blog and News" Links to the top news article are also displayed below the fold. I checked with Google In-Page analytics and the news articles main link get 0.1% of the clicks and the blog&news don't get any clicks. The Marketing VP wants to move Blog&News to a link below the fold... which seems like it will send a message to Google we don't care about it and get it even less traction than we currently have in terms of visitors. Any suggestions of what we should do with it?
Technical SEO | | theLotter0 -
How to avoid duplicate content when blogging from a site
I have a wordpress plastic surgery website. I have a wordpress blog on the site. My concern is avoiding duplicate content penalties when I blog. I use my blog to add new information about procedures that have pages on the same topic on the main site. Invariably same keywords and phrases can appear in the blog-will this be considered Duplicate content? Also is it black hat to insert anchor text in a blog linking back to site content-ie internal link or is one now and then helpful
Technical SEO | | wianno1680 -
Weebly Blog
Hello, Previously I asked if I should remove my blog from Weebly if I cannot change the page titles as they are being reported as duplicates. The answer was,yes and I headed to Weebly to remove it. Upon looking closer, every page and post does in fact show a different address. Now Im confused, I dont see duplicates but the campaign lists all the blog pages and states they are duplicates. I'm not sure what to do. Am I misunderstanding duplicate page? Thank you.
Technical SEO | | Gardengirl0 -
Exact match subdomains
Hi, I have seen significant SEO benefits from owning exact match domains and was wondering whether exact match subdomains hold the same (or some) of these benefits? eg. halloweencostumes.co.uk vs. halloween [dot] costumes.co.uk Many thanks.
Technical SEO | | martyc0 -
Which is best blogging platform from SEO POV?
I am curious to find out what is the blogging platform of choice for enterprize level companies (employees more than 500, revenue more tan 150M). What would be the best solution from SEO point of view? I have used Wordpress in the past for small companies and feel that is the best. We are currently using Telligent. Is anybody using it?
Technical SEO | | Amjath0