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. Is it bad to have your pages as .php pages?

    Is it bad to have your pages as .php pages?

    Technical SEO Issues
    4 4 432
    • 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.
    • BruLee
      BruLee last edited by

      Hello everyone,

      Is it bad to have your website pages indexed as .php?

      For example, the contact page is site.com/contact.php and not /contact. Does this affect your SEO rankings in any way? Is it better to have your pages without the extension?

      Also, if I'm working with a news site and the urls are dynamic for every article (ie site.com/articleid=2323.)

      Should I change all of those dynamic urls to static?

      Thank You.

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

        I wouldn't get to concerned about having an a file extension in your URL. If you can remove/hide it, by all means go for it because it couldn't hurt + it looks a little nicer.  With that said though, I wouldn't go out of my way to hire a developer to do that, it's not going to make a major impact on your ranking ability.

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

          For example, the contact page is site.com/contact.php and not /contact. Does this affect your SEO rankings in any way? Is it better to have your pages without the extension?

          ** No, this won't affect the rankings in any way.

          It's better for sharing the link and user experience to have the url without the extension - but that's minor overall. You can edit the htaccess file to "hide" the extension - that's easy and fast (10-20min session).

          Also, if I'm working with a news site and the urls are dynamic for every article (ie site.com/articleid=2323.)

          *** Yes, that will affect the rankings. Keywords as part of the urls are important.

          Should I change all of those dynamic urls to static?

          ** Defiantly yes.

          1 Reply Last reply Reply Quote 0
          • Mr.Rangen
            Mr.Rangen last edited by

            First question, it's personal preference. Just be sure you decide early on what you want to do, then stick with it. Changing it after the fact is where you're going to lose out a  bit.

            Second part, if you're using web publisher, look at the long-term strategy for URL structure before making the switch. ID's will probably still be necessary/recommended, but that's not to say you can't spruce them up with article titles and page numbers as well.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Very wierd pages. 2900 403 errors in page crawl for a site that only has 140 pages.
              H.M.N.
              H.M.N.
              0
              6
              64

            • Deleting 30,000 pages all at once - good idea or bad idea?
              xoffie
              xoffie
              0
              11
              159

            • Duplicate Page Title Error passing a php variable
              i7Creative
              i7Creative
              0
              3
              143

            • My website contains .htm and .php pages!
              Bromtec
              Bromtec
              0
              3
              186

            • Duplicate content by php id,page=... problem
              Dr-Pete
              Dr-Pete
              0
              6
              565

            • Is it bad to have same page listed twice in sitemap?
              josh-riley
              josh-riley
              1
              5
              3.8k

            • Page rank 2 for home page, 3 for service pages
              Alex-Harford
              Alex-Harford
              0
              8
              498

            • I need help on web page load time, its very bad!
              Hyrule
              Hyrule
              0
              9
              1.0k

            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