Wanted to shift a blog from sub domain to sub directory but...
-
Ok, I have a client who has their blog up and running on blog.website.com and they are planning to shift the blog to sub-directory www.websire.com/blog.
The only problem is that the blog and website are hosted on two different servers so is there any way we can shift the blog to sub directory without shifting the blog to the similar server?
-
-
Hey Moosa
Not really. There may be a nasty redirection workaround you could implement but a DNS A record can really only point to a domain / sub domain and not to a sub folder.
To do this the two elements need to be housed on the same server and then you need to redirect all the blog URLs to the new location. You should be able to do this with a fairly simple catch all redirection rule.
What is the blog software & hosting? Wordpress? It's fairly simple to migrate WordPress in most cases and I have some solid migration scripts for updating the DB if that is of use to you?
So, some pain to get this working but certainly worth the effort.
Hope that helps!
Marcus -
Hi Moosa,
I don't think sub directories can be hosted on different servers. Individual hosting is one of the most critical factors to consider when choosing between a subdomain and a sub directory structure. You will have to bring the blog to the same server as the primary domain.
Let's see what other tech guys have to say on this.
Regards,
Mayank
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
-
Recently re-built our site and changed domain. Now I want to go back to old domain - it it a bad idea?
About a year ago I rebuilt our website and changed our domain name. We rent villas in Tuscany, we used to be 'invitationtotuscany.com'. Then I started doing the same in Provence, and in the italian lakes, so i had further sites called invitationtoprovence.com and invitationtotheitalianlakes.com. But maintaining them was awkward and I wanted to have one site. So I put them all onto invitationto.com and did 301s from the old domains and sites. Now I'd dropped off organic search results and I've also realised that invitationto.com is far less clear as a business address. My inclination is to go back to invitationtotuscany.com - Tuscany is still 80% of our business and have the other areas in there too - optimised for SEO for Provence etc. I'm being told its a really bad idea to change domain, 301 the old one, and then revert to the original domain. But I'm suffering anyway, so I wonder if I sjhouldn't just bite the bullet. A lot of my old good backlinks still point to invitationtotuscany.com (BBC, Sunday Times, etc) and the DA is 33 against 22 on the new one.. All help gratefully received! : )
Technical SEO | | DanWrightson0 -
Redirect typo domains
Hi, What's the "correct" way of redirecting typo domains? DNS A record goes to the same ip address as the correct domain name Then 301 redirects for each typo domain in the .htaccess Subdomains on typo urls still redirect to www or should they redirect to the subdomain on the correct url in case the subdomain exists?
Technical SEO | | kuchenchef0 -
301 - Specific Domain
In Google our main website page url is <cite class="_Rm">www.wheelchairparts.com</cite> it has 25 root domain links & PA 34. When you go to our website from there, the homepage url is http://www.wheelchairparts.com/store/pc/home.asp it only has 3 root domain links & PA 27. Do I need to add a 301 Redirect here? What kind of redirect is on it now? Thanks, - Mike Bean
Technical SEO | | Mike.Bean0 -
Disavow to all domains?
Hi there, I have several versions of my domain setup in Webmaster tools. Should I upload my disavow file against all of these domains? For example.....
Technical SEO | | niallfred
If I find a link pointing to: http://www.mydomain.com from: http://www.somespammysite.com do I need to add a disavow file in Webmaster tools for all my domain versions or only the version the offending links points towards? So... Only
http://www.mydomain.com
Or
http://www.mydomain.com
http://mydomain.com
https://www.mydomain.com
https://mydomain.com0 -
Mutiple domains with similar SEO
ok we have one main domain about our company which is about renting luxury and exotic cars. (PrestigeLuxuryRentals.com). We own other domains with similar keywords,meta,etc on the URL and SEO For example, we own domains like exoticcarrentalorlando/exoticcarrentaltampa, with same background and design as main site but, we have different content than main site to avoid duplicate. Keep in mind, all the other domain we own, all have same template with our companies name on it but, it doesnt have any content or link that pertains to main site. is this a problem?
Technical SEO | | prestigeluxuryrentals.com0 -
To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
Hello, If your website is getting flagged for duplicate content from your main domain www.domain.com and your multilingual english domain www.domain.com/en/ is it wise to 301 redirect the english multilingual website to the main site? Please advise. We've recently installed the joomish component to one of our joomla websites in an effort to streamline a spanish translation of the website. The translation was a success and the new spanish webpages were indexed but unfortunately one of the web developers enabled the english part of the component and some english webpages were also indexed under the multilingual english domain www.domain.com/en/ and that flagged us for duplicate content. I added a 301 redirect to redirect all visitors from the www.domain/en/ webpages to the main www.domain.com/ webpages. But is that the proper way of handling this problem? Please advise.
Technical SEO | | Chris-CA0 -
Sub-domain dilema - variations
Hi All, We're creating a sub-domain for a new program launch on a client site and we need to choose the "right" sub-domain name that properly reflects the offering and hopefully keyword driven. The client is already using the preferred sub-domain name but until we get clarification that we can take it over, I'm doing my due diligence and expecting a worst case scenario in that we cannot use it. The current preferred sub-domain is only a landing page (not a full site) and it does NOT rank for anything and it's not being built out further. My question: Would pluralizing our preferred keyword have any effect in the way SEs see the two sub-domains as they're very closely related? hardcandy.sitename.com or hardcandies.sitename.com The new sub-domain would be a fully-functional-SEO-friendly site (well that's the plan anyway). Thanks for all your help.
Technical SEO | | Bragg0 -
Block a sub-domain from being indexed
This is a pretty quick and simple (i'm hoping) question. What is the best way to completely block a sub domain from getting indexed from all search engines? One item i cannot use is the meta "no follow" tag. Thanks! - Kyle
Technical SEO | | kchandler0