How to redirect subdomain to new blog directory
-
I have moved my wordpress blog from a subdomain to a subdirectory /blog/ on my site. What is the best way to setup a redirect from the subdomain to the new /blog/ directory?
Or should I just delete the subdomain blog and wait for google to index it on /blog/. I need to do one or the other so as not to run into duplicate content issues.
-
Just look at Google webmaster tools to be sure there are no external incoming links. Then go ahead and move it.
-
Thanks. It's a new blog and has no links pointing to it so would it be okay just to move it?
-
Unless you 301-redirect the subdomain to the subdirectory, you will be throwing away all the existing value of the blog, Sam, and will be essentially starting again from scratch.
It's a simple matter of adding the 301-redirect code to the .htaccess file. There are plenty of examples in other posts here on Q&A. If you can't find one, or need additional help, just let me know.
But do the redirect! You don't want to throw away all the work done up 'til now.
Paul
-
Yes agree, 301 redirects are the way to go. I'd want to take a look at incoming links to individual subdomain blog pages before deciding whether to do a single subdomain to subdirectory redirect, or use a page to page mapping and redirect strategy.
-
301 redirect subdomain to subdirectory. You can often do this in your Cpanel for your server.
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
-
Should I redirect or add content, to 47 Pages?
We have an insurance agency website with 47 pages that have duplicate/low content warnings. What's the best way to handle this? I'm I right in thinking I have 2 options? Either add new content or redirect the page? Thanks in advance 🙂
On-Page Optimization | | laurentjb1 -
Potential new URL structure for my ecommerce site
At the moment my site suffers from a flat product category structure where over 600 items fall into one category alone. This category is then filtered using a faceted search which appends query strings to the category URL and changes the products displayed on the page. At the moment our product category URL is as follows, www.domain.com/category/greeting-cards and this holds all cards including occasions such as anniversary, birthdays etc and also themes such as animal cards, contemporary cards etc I have proposed changes to my developer to change this structure to include subcategories. I can now go two subcategories deep. For example, "greeting cards > occasions > birthday cards" or "greeting cards > themes > animals". This is reflected in the new URL structure, which has been proposed, www.domain.com/greeting-cards/occasions/birthday-cards. In this URL do I need "occasions" in the URL as I don't think it adds much value to the user? Would I be better of having www.domain.com/greeting-cards/birthday-cards. If a user searches for "birthday cards" then I think this would be more relevant?
On-Page Optimization | | joe-ainswoth0 -
Redirecting deleted posts 301 vs 302
There is a category on WP where job ads are posted. when a post got deleted I would like to pass 404 error page and redirect all those deleted posts to specific category. I found WP plugin Auto Redirect 404 in 301 for Trashed Posts which does redirect deleted post to specific URL. But posts which are in the trash (not permanently deleted) will get 302 redirects. Those deleted permanently will get 301 redirects. Should I try editing this plugin or find another why? Maybe there is similar way with Redirection plugin?
On-Page Optimization | | OVJ0 -
Is my blog simply duplicate content of my authors' profiles?
www.example.com/blog is the full list of blog posts by various writers. The list contains the title of each article and the first paragraph from the article. In addition to /blog being indexed, each author's contribution list is being indexed separately. It's not a profile, really, just a list of articles in the same title & paragraph format of the /blog page. So if /blog a list of 10 articles written by two writers, I have three pages: /blog/author1 is a list of 4 articles /blog/author2 is a list of 6 different articles /blog is a list of 10 articles (the 4+6 from the two writers) Is this going to be considered duplicate content?
On-Page Optimization | | Brocberry0 -
What is the best way to integrate our blog into our ecommerce website?
Hi all, We run an eCommerce website at www.oursite.com plus a blog (including news / articles / reviews / how-to guides etc.) at blog.oursite.com (those aren't really our site URLs, BTW ;-). For SEO reasons previously discussed on here, and for ease of use for our customers / browsers, we now want to integrate the two more closely. This will mean: Our blog will move to www.oursite.com/blog We will try to feature the blog content in places where it is relevant to customers (so e.g. news and blog posts about shoes would appear on our shoes category page, a review of some Adidas XL1000 shoes would appear on the Adidas XL1000 shoes product page) The blog is currently run on a wordpress.com site, so we'll need a new CMS (or wordpress.org) to get more control of the data. My issues are that, although it's good from a users point of view, having blog articles appear in lots of different places on the site might cause issues with duplicate content from a search engine's point of view. Has anyone got any pointers on how to integrate the two in a way that will make most use of the good original content coming out of our blog, while not "watering it down" by spreading it around too much? Can anyone point to examples of shops that do this well? Is there any software (other than Wordpress) that people would recommend using? As always, any help greatly appreciated! Alex
On-Page Optimization | | reddogmusic0 -
The Best Way to Market a Blog Post?
So . . . I've written a beautiful blog (or video or podcast or whatever . . . just take my word for it that it will be nominated for an Oscar, Webby, or Pulitzer very soon). What's the best way to get the word out about it? Let me rephrase that. I know I should tweet, post on Facebook, social networks etc cetera. My real question is, should I link to the home page (which is where my blog is located . . . it would show up there) or should I link to the specific page of the full blog post? Seems to me, linking to the blog post directly gives me a better chance at tracking the success of the article in generating interest and traffic, but I was assuming linking to the home page helped pump up the importance of my overall site? I still consider myself an SEO Noob so be sure to speak slowly and not use big words. Consider drawing pictures.
On-Page Optimization | | damon12120 -
301 redirect results in plummeting DA. Why?
I redirected from my .co.uk site to my .com site (www.salesandinternetmarketing) and my Domain Authority has gone from 44 to 33!? Also SEO Moz states that it's crawled all my pages, yet isn't showing any on page reports, inculding keyword usage, meta descriptions, etc. I'm very confused and not receiving clear answers from the support team (they've said one of the reasons is that my keywords are not ranked in the top 50, well some are, nevertheless I should still be getting some report info shouldn't I)? Can someone please help, I'm rather fed up as this has been going on a for a couple of weeks now
On-Page Optimization | | lindsayjhopkins0 -
Is this new? Anchors showing in Serps.
I was checking out a keyword today and I noticed several listings on Google that had a line underneath that said, "Jump to keyword". The "keyword" was an href name anchor on the page. Is this new? Should we be including more anchors on our pages now? It makes sense as it helps the reader to navigate the page. Here is a photo of an example: 7XwaQ
On-Page Optimization | | MarieHaynes0