The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Subdomains

    Subdomains

    Technical SEO Issues
    2 2 931
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LSLPS
      LSLPS last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • DanDeceuster
        DanDeceuster last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Subdomain or subfolder?
          NickSamuel
          NickSamuel
          0
          4
          1.6k

        • Subdomain Question
          ThomasHarvey
          ThomasHarvey
          0
          2
          30

        • What to do about this subdomain for SEO?
          kelseyc
          kelseyc
          0
          3
          85

        • To Subdomain or Not Subdomain?
          AlanMosley
          AlanMosley
          0
          8
          144

        • No index on subdomains
          DennisSeymour
          DennisSeymour
          0
          4
          623

        • Content on subdomain...
          Oren.
          Oren.
          0
          4
          109

        • "Fourth-level" subdomains. Any negative impact compared with regular "third-level" subdomains?
          Adam_Cochran
          Adam_Cochran
          0
          7
          9.1k

        • Subdomain for a blog
          Francisco_Meza
          Francisco_Meza
          0
          6
          391

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy