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. What directory should a site go in (url structure)?

    What directory should a site go in (url structure)?

    Technical SEO Issues
    6 5 151
    • 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.
    • Mario.Souza
      Mario.Souza last edited by

      Hi All,

      The is the first actual SEO campaign i've worked on and I had a few question about where the site should live on the server and url structure. The site is in WP and we're using Yoast SEO.

      Anyway the site lives in a a folder called Coastal, which is a child of the WWW folder. So the permalink of the homepage is mcoastalwindows.com/coastal/. The URL is mycoastalwindows.com. The thing is I can still get to the homepage or any of the pages on the site by typing in the /coastal/. Another example is permalink mycoastalwndows.com/coastal/siding/ and url mycoastalwindows.com/siding/. The urls always display without the /coastal/, so I'm not too worried about people linking to them, but Yoast puts a canonical element to the permalink and always includes the /coastal/. Also I'm seeing that Google displays a lot of the urls with the /coastal/, which is an issue seeing as we don't link to the pages that way.

      My original thought was to solve this at the source and just move everything out of the coastal directory, but the developer swears that it's more secure being in another folder especially with WP. What would you all do and what is best practice? Would you move everything out of the coastal folder, 301 re-direct, do something with. htaccess, or another solution?

      Appreciate the input thanks!

      1 Reply Last reply Reply Quote 0
      • customerparadigm.com
        customerparadigm.com last edited by

        Mario -

        The biggest issue I see is that your developer thinks that having content not in the www / home directory is somehow more secure. I think this is a red flag, as literally 20% of the websites on the Internet run WordPress (including my site).

        While there are security issues from time to time that crop up, keeping up to date with patches, upgrades and server settings will mitigate this.

        Best practice, hands-down, is to keep your home page content in the www folder, and not in the /coastal/ folder. In a sub-folder, it's not going to perform as well from an SEO perspective. And it could hurt you, as it looks like you might be trying to "stuff" in a keyword or two.

        I would recommend moving the site into the www / home directory, and setting things up so that this is the primary URL. Yes, use 301 redirects on the older links so that you don't have 404 errors on the site…

        Hope this helps!
        -- Jeff

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

          Hi Mario,

          I agree with Jeff. You need to move your site up a folder.

          You could write rules that remove the '/coastal/' from the canonical URL for the Yoast plugin, 301 redirect /coastal/* to /* etc - but this is really messy.

          It's fine to have your site on the root domain....it's no less secure.

          1 Reply Last reply Reply Quote 1
          • Brett-Harland
            Brett-Harland last edited by

            Hi,

            I agree with Jeff, developers seem to have an inherited paranoia problem with Word press and security. This can be solved by using a security plug in like word fence.

            Word press is built with security in mind its weakness is 3rd party plug ins so beware when installing any always look for more popular properly supported ones.

            Hope this helps

            Brett

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

              Hi Mario,

              The Mozzers above are right - your best move is to get rid of the redundant /coastal/ subfolder.

              Your developer is incorrect. There is no security benefit to the subfolder.

              I would suggest, to ensure security, that you instead have a thorough read through this guide to Hardening WordPress and follow these methods, as they will cover you for the vast majority of hack attacks.

              Also, keep regular backup copies of your database if your hosting company doesn't do this automatically. Between that and backups of the website files, you'll be well covered in the event of a hack.

              Best,
              Mike

              1 Reply Last reply Reply Quote 0
              • Mario.Souza
                Mario.Souza last edited by

                Thanks for the help guys! Appreciate it.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • URL Structure
                  Andy.Drinkwater
                  Andy.Drinkwater
                  0
                  4
                  73

                • We have designed a new site and are in dilemna whether or not to change the site's URL structure or maybe few odd looking urls. How exactly do we go about the URL thing in toto? thanks in advance, any suggestion(s) would be dearly welcome
                  ShaunPhilips
                  ShaunPhilips
                  1
                  7
                  109

                • What is the best practice to seperate different locations and languages in an URL? At the moment the URL is www.abc.com/ch/de. Is there a better way to structure the URL from an SEO perspective?
                  irvingw
                  irvingw
                  0
                  2
                  64

                • Structure of urls
                  AlanBleiweiss
                  AlanBleiweiss
                  0
                  6
                  131

                • If you are organizing the site structure for an ecommerce site, how would you do it?
                  danatanseo
                  danatanseo
                  0
                  2
                  323

                • Our UE team has presented me with a site structure where the content (folders) does not match the hierarchical directory structure (in the CME)
                  Klarke
                  Klarke
                  0
                  2
                  246

                • Can URL re writes fix the problem of critical content too deep in a sites structure?
                  KaneJamison
                  KaneJamison
                  0
                  2
                  575

                • URL Structure
                  signsny
                  signsny
                  0
                  8
                  1.2k

                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