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 -
Fixing Index Errors in the new Google Search Console - Help
Hi, So I have started using the new Search Console and for one of my clients, there are a few 'Index Coverage Errors'. In the old version you could simply, analyse, test and then mark any URLs as fixed - does anyone know if that is possible in the new version? There are options to validate errors but no 'mark as fixed' options. Do you need to validate the errors before you can fix them?
On-Page Optimization | | daniel-brooks0 -
Meta tags not being displayed for Mobile version of a blog even after the blog is indexed
I have updated the meta title and meta description for my blog. After updating the meta tags, blog URL was submitted in the webmasters and it has been crawled and indexed by Google but only for the desktop version and not for mobile version. Currently, meta tags are not being displayed for mobile version in Google. I have also checked with robots.txt file, there is no problem with this file. PFA screenshots for reference. Kindly help me out with this issue. eWu1k8N PdimKGq
On-Page Optimization | | priyankadesai1230 -
Is it OK to put a Blog Post and a Page within the same folder on a Wordpress hosted website?
Our education company website (hosted on wordpress) has evolved into having content on key topics distributed across both blog posts and pages. For example, "top-pharmaceutical-companies" lends itself to being published as a page. However other content "top-pharmaceutical-companies-usa-2016" lends itself to being published as a blog post as it's more temporal in nature. Now we'd like to establish topical domain relevance for the root keyword "pharmaceutical companies" and build a folder www./ourcompany/pharmaceutical-companies/ But when we look through our blog content, we notice we have "Blog Posts" that would be an excellent fit for certain folders within our "Page" url structure. So would it be OK to amend these blogs post urls addresses to place them within the folder structure of the pages.
On-Page Optimization | | GetReskilled0 -
New google serps page design
hi i know title length displayed is now based on pixels rather than character but still thought safe to have titles up to 70 characters long before they are truncated i see that on the new G serps designed pages titles that were showing in full on old design (without truncation) are now being truncated. As in same title shows fine (displays in full) on old design serps but truncated on new designed page Anyone else notice this ? Cheers Dan
On-Page Optimization | | Dan-Lawrence1 -
Mobile blog creating duplicate title and content issues
My site is set up with a mobile website and after running the on page SEO report on moz it is returning multiple errors for duplicate title tags and duplicate content all related to the mobile website being a direct reflection of the main site. I want to know if this is really an issue. I'm sure Google actually knows the difference between my main site and the mobile version. Do I really need to go through each individual mobile page and change each page title and modify all the content? I really would like to avoid doing this but at the same time would like to fully optimize my site. Any advice is appreciated.
On-Page Optimization | | shiftins0 -
Can A Blog post impact negatively on Google rankings?
We used to rank fairly highly on Google for our preferred search term, but once we introduced a blog (or rather the blog excerps) onto our home page we dropped from page 1 to page 3 for our preferred search term. We have made the assumption this may be down to diluting of keywords and therefor the key phrase or message to the Search Engines was not as clear as it was before. Is this generally accepted as being the case ? If so - should each and every blog post excerpt start with the key seo search phrase to maintain the integrity of that search phrase ? or perhaps even better still is it best to have the blog on a dedicated page only with no excerpts on the home page ? We are using Wordpress and also using multiple categories within the blog - is it perhaps best to just have all blog postings on the one page and use TAGS more often? Thanksing you in advance.
On-Page Optimization | | kiswebsltd0 -
Redirect and page ranking
We used to have a good page rank of Google, but now our page rank dropped to zero. A few months ago we did a redirect from our www.???.com to non-www.???.com, because non-www.???.com is now our main website. We also have a number of other domains which we redirect to our main website non-www.???.com Do you think these redirects are causing the problem, and if so what can we do to fix it? Thanks!
On-Page Optimization | | poupette0