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. Local Website Optimization
    4. Website Migration - remove unnecessary sub-folder?

    Website Migration - remove unnecessary sub-folder?

    Local Website Optimization
    4 4 260
    • 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.
    • aj613
      aj613 last edited by

      Rebuilding a site that currently has good rankings.  The original site was build in Joomla. I am doing the rebuild on WordPress.  The old site is at the domain www.savannah-dentist.com, but clicking on any link generates a url with a subfolder; i.e. the website is at www.savannah-dentist.com, click on the logo and you will go to www.savannah-dentist.com/rosenthal/, the "meet the doctors" link goes to "www.savannah-dentist.com/rosenthal/meet-the-doctors"

      When I rebuild the site, do I have to retain that url structure?

      If I get rid of the folder and make everything simply like www.savannah-dentist.com/meet-the-doctors, will I be jeopardizing our rankings?

      Thanks!

      -Adam

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

        You can 301 to any place, so if it's beneficial to change the structure the site, now's the time to do it.  Beware though, when you change the structure of the website, and are placing pages in different folders, you're changing the URL, so it will affect your ranking, hopefully for the positive.   I think what you're proposing would be an improvement.

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

          If the folder is there for no reason, get rid of it.  Rewrite out the entire directory.  Try this:

          In the .htaccess add:

          Options +FollowSymLinks -MultiViews

          Turn mod_rewrite on

          RewriteEngine On
          RewriteBase /

          RewriteRule ^rosenthal/(.*)$ /$1 [L,NC,R=301]

          1 Reply Last reply Reply Quote 0
          • David-Kley
            David-Kley last edited by

            301 the old links to the new linking structure. If it is already a high ranking page, the link weight should carry through.

            Since it already ranks high, I would keep as many elements as you can the same, unless they dont rank well and need to be improved. Make sure to do a site search for indexed pages, and redirect or create a removal request for any unatural cms-generated links. (component/SAMPLE/123456 etc)

            DO NOT just delete the entire folder without seeing how many on page links still link to those pages. Check your on-page links to see if it is generated by the menu system, or if is hard-coded in the content.

            Wordpress also has a few items you will want to change in the robots.txt file vs the old Joomla site.

            User-agent: *
            Disallow: /feed/
            Disallow: /trackback/
            Disallow: /wp-admin/
            Disallow: /wp-content/
            Disallow: /wp-includes/
            Disallow: /xmlrpc.php
            Disallow: /wp-
            Allow: /wp-content/uploads/
            Sitemap: http://example.com/sitemap.xml
            Disallow: /wp-content/plugins

            or you could also use this one:

            User-agent: *
            Disallow: /cgi-bin/
            Disallow: /wp-admin/
            Disallow: /wp-includes/
            Disallow: /wp-content/
            Disallow: /archives/ disallow: /?
            Disallow: ?replytocom Disallow: /wp-
            Disallow: /author
            Disallow: /comments/feed/
            User-agent: Mediapartners-Google*
            Allow: /
            User-agent: Googlebot-Image
            Allow: /wp-content/uploads/
            User-agent: Adsbot-Google
            Allow: /
            User-agent: Googlebot-Mobile
            Allow: /

            Hope this helps! Best of luck with your new build.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • How to be above the product maker website
              seoanalytics
              seoanalytics
              1
              4
              61

            • Remove URLs from App
              effectdigital
              effectdigital
              1
              2
              48

            • Dual website strategy
              Alpine9
              Alpine9
              1
              4
              489

            • Website ranking issues
              danwebman
              danwebman
              0
              2
              127

            • Comparing oddities between two websites
              SEO_Matt
              SEO_Matt
              0
              3
              285

            • Sub domain for geo pages
              montana.marsden
              montana.marsden
              0
              2
              88

            • How to approach SEO for a national website that has multiple chapter/location websites all under different URLs
              Matthew_Edgar
              Matthew_Edgar
              0
              3
              290

            • Website Duplication in Sub-Directory
              Lumina
              Lumina
              0
              2
              112

            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