Subdomains
-
Hi,
I have recently started working in-house for a company and one site development was started and completed just as I joined.
A new area of the site has been developed, but the developers have developed this new section in php, which cannot be hosted on the windows server the site is running on (they tell me, is this correct?)
They want to add the new section as a subdomain - http://newarea.example.co.uk/ whereas I would have preferred the section added as a new subfolder.
I plan to ensure that future developments to not have this problem, but is the best solution to work with the subdomain (in this instance it may not be too bad as it is a niche area of the site), or can I redirect the pages hosted on the sub-domain to a subfolder, and is this recommended?
Thanks for your time.
-
If you have a windows server, you cannot run php on those pages. You need a Linux server for this. This means you cannot put PHP in a subdirectory or folder. They are correct that it would have to be a subdomain, hosted on a linux server. You can redirect a URL from your subdomain to a subdirectory URL, but if the content is in php, you cannot put the same content from the subdomain into a subfolder.
Using a subdomain is not the end of the world. It is not ideal, but it won't kill you. Your best bet would be to try and change your hosting to be on a linux server, then use a subdirectory. If not, you have no choice really.
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
-
Do subdomains negatively impact SEO
If we want to eliminate one of our domains and consolidate it with our main domain by the subdomain approach, would that negatively impact our SEO? Example: change www.xyz.org to www.xyz.abcd.org, Thanks, in advance, for your feedback.
Technical SEO | | Shirley.Fenlason0 -
Is there a good Free tool that will check my entire subdomain for mobility issues?
I've been using the Google tool and going page by page, everything seems great. But I'd really like something that will crawl the entire subdomain and give me a report. Any suggestions?
Technical SEO | | absoauto0 -
How is Google finding our preview subdomains?
I've noticed that Google is able to find, crawl and index preview subdomains we set up for new client sites (e.g. clientpreview.example.com). I know now to use "meta name="robots" and robots.txt) to block the search engines from crawling these subdomains. My question though, is how is Google finding these subdomains? We don't link to these preview domains from anywhere else, so I can't figure out how Google is even getting there. Does anybody have any insight on this?
Technical SEO | | ZeeCreative0 -
Subdomain mozTrust - does other parkd domains can affect that ?
Hi , I have my domain www.mydomain.com and it have dpmain authority 26 , domain mozRank around 3 , domain mozTrust 1.63 , page authority 31, Google PR 2.0 etc etc So I am not in very bottom of scores, but my SUBDOMAIN MOZTRUST is only 0.961 and I've checked other websites that I've made some time ago and they have it like 4.0. So it is quite bad. I am having some domain parked within my hosting package. they have different names like www.mydomain2.co.uk , www.mydomain3.com etc. I can acces those domains as wel by typing : mydomain2.mydomain.com mydomain3**.mydomain.com** and have some testing subdomains there as well (just if I need to test something like drupal , wordpress or testing shoping cart etc.) Can that fact affect my subdomain rank ? Because I am having those domains parked there or I've made some subdomains that are not in use and nobody is linking to them and they are visible in Google ?
Technical SEO | | sever3d0 -
Bandcamp subdomain
I have a website - www.weddingmusicproject.com that is doing quite well. However, we have all of the actual music listed on weddingmusicproject.bandcamp.com and have a number of very powerful pages there (bandcamp is a great product by the way). Is there a strong benefit to our domain's authority if we move our "bandcamp" site onto our own subdomain using their custom domain option - http://bandcamp.com/faq_custom_domains - Something like music.weddingmusicproject.com. I seem to think that it would increase our overall domain authority, but it wouldn't increase the number of inbound links or anything. If anything it would decrease the number of linking domains and bandcamp is quite a powerful site so those links would just turn into internal links. Thoughts? I know this is probably a basic concept, but I've thought it over a number of times and can't come to a conclusion.
Technical SEO | | deyobr0 -
Robots.txt for subdomain
Hi there Mozzers! I have a subdomain with duplicate content and I'd like to remove these pages from the mighty Google index. The problem is: the website is build in Drupal and this subdomain does not have it's own robots.txt. So I want to ask you how to disallow and noindex this subdomain. Is it possible to add this to the root robots.txt: User-agent: *
Technical SEO | | Partouter
Disallow: /subdomain.root.nl/ User-agent: Googlebot
Noindex: /subdomain.root.nl/ Thank you in advance! Partouter0 -
Exact match subdomains
Hi, I have seen significant SEO benefits from owning exact match domains and was wondering whether exact match subdomains hold the same (or some) of these benefits? eg. halloweencostumes.co.uk vs. halloween [dot] costumes.co.uk Many thanks.
Technical SEO | | martyc0 -
Starting a new product, should we use new domain or subdomain
I'm working with a company that has a high page rank on it's main domain and is looking to launch a new business / product offering. They are evaluating either creating a subdomain or launching a brand new domain. In either case, their current site will link contextually to the new site. Is there one method that would be better for SEO than the other? The new business / product is related to the main offering, but may appeal to different / new customers. The new business / product does need it's own homepage and will have a different conversion funnel than the existing business.
Technical SEO | | gallantc0