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. Intermediate & Advanced SEO
    4. Forced Trailing Slash on PHP Pages In Google!

    Forced Trailing Slash on PHP Pages In Google!

    Intermediate & Advanced SEO
    5 2 435
    • 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.
    • Webpresence
      Webpresence last edited by

      Hi, have never seen this before so am hoping soemone can shed some light!

      Google seems to be forcing a trailing slash at the end of our php pages within the search results.

      For example, Google is indexing http://www.kingstoncabinets.co.uk/heat-convection.php/ (trailing slash) rather than http://www.kingstoncabinets.co.uk/heat-convection.php (without slash).

      The trailing slash page doesn't display properly and has no page authority.

      I've ran the site through Screaming Frog and there are no internal links the the trailing slash URL's, nor does there seem to be any external links to these pages.

      Why is Google forcing the slash?

      Am confused 😞

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

        Okay, here's a couple of things to look at first.

        1. Rel Canonical: if you have  tags in your section, do they have trailing slashes?

        2. What's in your .htaccess file (or web.config?). I just accessed the page without a trailing slash so this might not be the problem.

        Lastly, I've just done site:kingstoncabinets.co.uk and I'm not seeing any trailing slashes, did you find the issue already?

        Webpresence 1 Reply Last reply Reply Quote 0
        • Webpresence
          Webpresence @Nobody1560986989723 last edited by

          Many thanks Martin, appreciate the feedback!

          We've 301'd the following trailing slash pages to the non-slash pages so hopefully this should resolve the problem.

          http://www.kingstoncabinets.co.uk/wooden_white_oak_radiator_covers.php/
          http://www.kingstoncabinets.co.uk/designer_radiator_covers_designs.php/

          In answer to your questions;

          1. No cononicals on the issue pages

          2. No problems with the .htaccess file.

          Am just confused why this has happened!

          Thanks again, Lee

          Nobody1560986989723 Webpresence 2 Replies Last reply Reply Quote 0
          • Nobody1560986989723
            Nobody1560986989723 @Webpresence last edited by

            Looks like you've managed to fix the issue then, because your SERP listings seem to be without the trailing slash 🙂

            Had you previously done 301's to the new URLs? Sometimes that can cause issues if the page structure is not the same on the new site as the old.

            And just as a pointer, underscores aren't usually advisable for URLs any more, you're better using hyphens instead 🙂

            1 Reply Last reply Reply Quote 0
            • Webpresence
              Webpresence @Webpresence last edited by

              Thanks Martin, not 301'd the pages before so it's still a mystery why this has happened! They're not new pages, been around for years without this problem!

              We're aware of the underscore issue, this is how we found the URL's when we took over SEO, as the pages are ranking well I feel it best to leave as is.

              Thanks again, Lee

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Will google be able to crawl all of the pages given that the pages displayed or the info on a page varies according to the city of a user?
                0
                3
                17

              • 6 .htaccess Rewrites: Remove index.html, Remove .html, Force non-www, Force Trailing Slash
                roynguyen
                roynguyen
                0
                4
                9.7k

              • Is it better to have trailing slash or no trailing slash in URLs and what if both variations work?
                webmethod
                webmethod
                0
                4
                2.8k

              • How do I get rel='canonical' to eliminate the trailing slash on my home page??
                AlanMosley
                AlanMosley
                0
                8
                3.5k

              • Google local pointing to Google plus page not homepage
                MiriamEllis
                MiriamEllis
                0
                2
                73

              • Google+ Pages on Google SERP
                overalia
                overalia
                0
                3
                664

              • Our site is recieving traffic for both .com/page and .com/page/ with the trailing slash.
                Profero
                Profero
                0
                5
                670

              • There's a website I'm working with that has a .php extension. All the pages do. What's the best practice to remove the .php extension across all pages?
                digisavvy
                digisavvy
                0
                5
                445

              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