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. Link Building
    4. Index.php OR .php - Which is better for urls

    Index.php OR .php - Which is better for urls

    Link Building
    6 5 959
    • 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.
    • openspan
      openspan last edited by

      I was wondering.  When I build links should I build them using "index.php" OR ".php" at the end?  Does one have any more value than the other from an SEO standpoint

      Example:

      www.mywebsite.com\hotdogs\index.php

      or

      www.mywebsite.com\hotdogs.php

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

        The shorter the better! By including keywords inside of the link will help crawlers to better understand whats that particular url about.

        Good Luck

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

          I would recommend www.mywebsite.com/hotdogs/.

          Dr-Pete 1 Reply Last reply Reply Quote 1
          • moldybacon
            moldybacon last edited by

            I would use hotdogs.html, not that it makes much difference, but I personally prefer it so it doesn't look like an auto-generated page. If your planing on having a lot of hotdog related content I would defiantly go with /hotdogs for it all.

            1 Reply Last reply Reply Quote 0
            • Dr-Pete
              Dr-Pete @SEMPassion last edited by

              I lean toward this one, too, but Google has no particular bias against dynamic pages. SEOs use to warn against using "dynamic" URLs, because they tended to include a lot of parameters and create duplicate content, but there's plenty of evidence that ".php" pages are perfectly fine.

              To me, it boils down to:

              (1) As TraxNYC said, all else being equal, shorter is better

              (2) It looks a bit friendlier to search visitors (and easier to read)

              (3) It doesn't instantly reveal your underlying platform (and pose a security risk)

              moldybacon 1 Reply Last reply Reply Quote 0
              • moldybacon
                moldybacon @Dr-Pete last edited by

                What do you mean by (3) it doesn't reveal your underlying platform? I don't think URL structure would be of much concern here, especially if you where experienced in exploiting websites? Maybe I'm wrong, not to sure what you are referring too.

                In regards to you leaning towards this one, surely posting it as a directory /hotdogs/ implies that it is that, a directory and not a just a page about hotdogs? I'm digging a bit to deep into this, as I'm sure it won't make that much of a difference, but I'm just saying, it seems more logical to have it .php or .html

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • How to index these backlinks
                  RossKernez
                  RossKernez
                  0
                  2
                  40

                • How to index this links
                  Djoped20
                  Djoped20
                  2
                  42
                  320

                • Url and url structure and Focus keyword
                  Moreleads
                  Moreleads
                  0
                  6
                  320

                • GWT Lists URLs with links to my site, but those URLs don't have links to my site
                  absoauto
                  absoauto
                  1
                  2
                  221

                • Page Indexed?
                  allyunit
                  allyunit
                  0
                  7
                  106

                • I want to submit some high pr backlinks that i have to crawlink services and indexing services to get them indexed! What you recommend me?
                  KeriMorgret
                  KeriMorgret
                  0
                  3
                  266

                • How to find all banklinks for a URL that forwards to a main URL
                  realpage
                  realpage
                  0
                  4
                  549

                • What link would be better?
                  THB
                  THB
                  0
                  7
                  746

                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