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
-
We recently updated a large guide that takes the place of the original. The original has some nice organic traffic to it and I don't want to risk losing it. Should I 301 redirect to the new version, or update all the info directly on the original page?
We don't have a lot of content that garners much non-branded organic, so this is something I don't want to risk losing. We do not have a whole lot of external links into the page either.
On-Page Optimization | | AFP_Digital1 -
301 Redirects - Large .htaccess file question
We are moving about 5000 pages from root into different folders. We need to individually 301 each page because the are sitting at root level now: mysite.com/page.com We want to move them to: mysite.com/folder/page.html etc I dont think redirect match can works because of the different files names and folders they are being moved in to. Will 5000 entries in .htacess slow site loading? Any other suggestions how to handle?
On-Page Optimization | | leadforms0 -
Old Blog Posts
Every single day we publish articles that have a high amount of engagement onsite 50-300 comments. We have been running for around 8 years now and have a rather bloated database of old stale posts. We post advice on betting on sports. Not guides as such but tips for events. After the event has started the posts are outdated. What is your advice for these? These articles are not seen as "thin" but rather outdated. There is no way possible for me to update the content as such. Also out right deleting the content would go against our openness and transparency of past selections advised.
On-Page Optimization | | MrDeeBee0 -
.htaccess redirect chains
At item 4 in the post at http://moz.com/blog/htaccess-file-snippets-for-seos the author recommends combining .htaccess redirects to avoid chaining redirects. I'd be obliged if someone could expand on: 1. What he means by chained redirects 2. How to combine the redirects per his recommendation Cheers.
On-Page Optimization | | ztalk1120 -
URL for a new website
Hi, I am creating a new website for a client. Is it best to include the keywords from the most common search in the domain name, they would like: forenamesurname.com but should I be recommending: weddingmakeupbyforename.com Does it make much difference to search rankings if the keyword is in the domain name? Thanks v much
On-Page Optimization | | danieldunn100 -
Help! A couple of basic questions on dup. content, pagination and tumblr blogs.
Hi, and many thanks in advance for any assistance. According to our GWMT we currently have over a thousand duplicated title tags and meta descriptions. These stem from tabs that we have located beneath the body copy, which when you click on them display offers or itineraries (we're a travel company). So the URLs change to having "?st=Offer" or "?st=Itinerary" at the end, and are considered to be duplicating the original page's title and meta des. Sometimes the original page is also paginated, and shows the same duplication errors. What would be the best way to ensure we're not duplicating anything? Also, we have a tumblr blog, where there's single page displaying all the blog content, but also links to each blog on a separate individual page. We would like to keep the individual pages as we can optimise to target specific keywords, but want to avoid any duplication issues again. Any advice would be greatly appreciated.
On-Page Optimization | | LV70 -
Blog on Subdomain vs. Subdirectory - Best Practices
Hi, I have recently been told that it no longer impacts authority or rankings if a blog is set up on a subdomain (blog.domain.com) rather than a subdirectory (/blog). However, I am reluctant to do so because I remember learning how blog subdomains did not adhere to SEO best practices. Would anyone be able to shed some light on the latest SEO best practices regarding this topic? Many thanks, Erin
On-Page Optimization | | HiddenPeak0 -
Necessary to redirect non-www to www?
Hello All, I've read quite a bit on here and the Matt Cutts blog http://mattcutts.com/blog/seo-advice-url-canonicalization/ about non-www vs www. I''ve also read a few recent posts on here but still left a little confused. First, my site is PR 4. We don't have many links, but the ones we do have (including internal) point to the www.example.com. You can also get to our site by typing example.com and it will not switch to the www. version. Both versions have the PR4, I just want to make sure I'm not losing any PR or juice between the different versions. My question, would you advise 301 redirect to the www version? if so, I have Godaddy as our host, is it as simple as going into the hosting control and doing the redirect there?
On-Page Optimization | | someoneguy0