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
-
My site auto redirects http to https. This is causing redirect chains. What can I do?
I noticed that Moz flags a lot of redirect chain issues on my site. I realized that this is mostly because the site automatically redirects http to https, and when I create a new URL (when a URL changes, for example) it is automatically flagged as a chain. Example: http://www.example-link Auto directs to: https://www.example-link Which is then redirected to: https://www.example-link-changed (when the address actually changes) I don't seem to have any control over changing where the initial http redirect goes. Any advice on fixing this problem?
On-Page Optimization | | baystatemarketing0 -
Subdir vs Subdomain vs ccTLD
Hello Community, I'm running a .com website with India targetted audience on Webmastertools from 2 years. Now I want to start a separate zone for US. .us domain is not available for my domain right now. So what is your suggestion for best results: 1. domain/us (Subdirectory) 2. us.domain (Subdomain) 3. new domain (separate website) I think Subdomain can work great if I will pass place a header link sitewide. Or that can reduce authority as mentioned on few blogs? Let me know your thoughts
On-Page Optimization | | sah900 -
Building a new page: What on-page SEO would you build in?
Hi all, Building a new page for a fairly competitive keyword. Need to make sure the on-page SEO is pretty top notch, because link building (including internal links) will be difficult. I've optimised the meta description, the alt tags and image names, and included the keyword in the Title Tags. Not a great deal I can do with regards to optimising for mobile or considering migrating to the AMP project because this is handled externally. What else would you suggest? Cheers in advance, Rhys
On-Page Optimization | | SwanseaMedicine1 -
Integrate a blog within an existing site
Hello everyone! I work on a website of a very small company and so far no one has ever implemented (not even thought about) a proper content strategy. The only content on the site are products description. Through Analytics I discovered lots of opportunities and topics to be covered which would massively increase the traffic, increase the engagement and (hopefully) sales. Problem is that I don't really know how to integrate a blog into the existing site; my first thought was wordpress What is the best way to do it?
On-Page Optimization | | PremioOscar0 -
Making a subdomain more search engine friendly?
I have a volusion website, and I cannot have a subdirectory, it must be a subdomain. Is there anything I can do to optimize this subdomain to make it more search engine friendly?
On-Page Optimization | | SKMEIS0 -
Temporary Redirects
On my crawl report from SEOmoz, I have a lot of Temporary Redirects listed. The referring site is a product category page, but the URL listed is part of a shopping cart. For example: | http://www.adagiowaterfeatures.com/cart.php?action=add&product_id=496 | Tested true for a temporary redirect referred by this url: | http://www.adagiowaterfeatures.com/categories.php?category=Free-Standing-Water-Features/Harmony-River-Collection | Why does this occur and what can I do about it?
On-Page Optimization | | AdagioWaterFeatures0 -
Blog Post Snippets on HP & Cat Pages
I want my blog's category pages to have the ability to be indexed and rank, therefore I don't want to noindex these pages. My strategy is to create original snippets for each post on these pages but I don't know what Wordpress plugin or configuration I can use to create original snippet content on the Homepage and Category pages that will not show up within the blog post text itself. Any suggestions?
On-Page Optimization | | mj7750 -
Passing value in a subdomain
Hi guys, I am planning of setting up a blog within a client's website, due to limitations to their server environment, I can only setup the blog in a subdomain, I have read in some articles saying subdomains don't pass value as well as subfolders. My questions are: Is it true that subdomains can't pass SEO value? For example, if I set up a blog (say blog.mydomain.com), will that improve long tail searches for my website (mydomain.com)? What are some recommendations for subdomains so that it passes more value back to the root domain (for example, internal linking from subdomain back to root domain) Thanks guys.
On-Page Optimization | | NextDigital510