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
-
Will I cannibalize a ranked product by introducing a new product in the series with the same keywords?
Currently http://aoi-corp.com/safety-monitors/series-1000 ranks #4 for Oxygen Deficiency Monitor, the newer product http://aoi-corp.com/oxygen-deficiency-monitor/series-1300-oxygen-deficiency-monitor needs to rank for the same keyword. Will I hurt the Series 1000 ranking? Thoughts/advice on strategy? Thanks.
On-Page Optimization | | JJSAMRA0 -
Redirect both / and non-/ URLs?
I am doing SEO on WP site. Due to some duplicate pages (rel canonical was done before) I am doing 301 redirects at the moment. And I wonder if I need to redirect both links w/ and w/o trailing slash. Default is non www, w/o trailing slash. Like there is .com/category/news but there is same page linked in .com/news (well it works when permalink structure is set to /%category%/%postname% and returns 404 error when structure is set to /%postname%).
On-Page Optimization | | OVJ
I redirected .lt/naujienos to .lt/category/naujienos. Should I also redirect .lt/naujienos/ (with trailing slash)? There's absolutely no problem redirecting this, but there are some more pages which I want to edit their URLs and I wonder If I should do both redirects from links /w and w/o slash?1 -
Using Subdomains to Increase Keyword Density?
I have a website on which I publish lots of news (sometimes up to 10 posts per day). I have a feeling that somewhat it is diluting the density of some keywords I am targeting. By using subdomains, would I avoid diluting keyword density too much? Of course, I am talking about a reasonable use of subdomains (maybe 1 or 2). What's your opinion?
On-Page Optimization | | sbrault740 -
Changed Blog Name - Duplicate Title Tags - Wordpress
Hi friends, I changed my blog name url from "german-shepherd-blog" to "dog-blog." Now I am getting a large amount of duplicate title tags. How do I tell google I made the change? Is there something on my site I need to change?
On-Page Optimization | | Joshlaska0 -
Is there a guide to best practices for site content and blogs?
We have been working hard producing good content for our sites and now we need to know what are the most current best practices regarding placing and organizing content. We do the usual social media blast with Twitter, FB, G+ with each blog post. But it seems there is more that can and should be done. What about authorship and schema tags?
On-Page Optimization | | devonkrusich0 -
SEO for Blogs - Top Tips
Hi People, This may have been covered before (i am sure it had) but I was wondering if people use the same SEO tactics for blogs as they do for other sites. Really wondering if there are any tips for blogs specifically ? 🙂 Thanks all
On-Page Optimization | | wedmonds0 -
Using new domain in existing website
We have already a site and we want to make business in another country. We don't want to make a copy of our site because it requires more resources, but we want to use a different domain because the business will be run by a partner in that country. The idea is to make a folder in our site, www.mysite.com/countryname/ and associate a new domain www.newdomain.com, so when users go to the new domain they see the content under www.mysite.com/country/. Since de www.newdomain.com will use DNS redirection, the current domain won't be seen. Is this correct from a SEO perspective? Thanks!
On-Page Optimization | | Xopie1 -
301 redirect (www.domain.com/index to www.domain.com)
Hello, Please let me know what are the exact right steps in order to get rid of the duplicate content issues related with: www.domain.com/index.html same as www.domain.com without creating an infinite loop. Do you have a step by step guide posted within seomoz including 301 redirect for non www to www for all urls and index.whatever to main domain name without going into a infinite loop ? btw how to you spot the loop ? is it obvious like never ending refresh of the home page ? thanks a lot !
On-Page Optimization | | eyepaq2