Index.php OR .php - Which is better for urls
-
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
-
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
-
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)
-
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.
-
I would recommend www.mywebsite.com/hotdogs/.
-
The shorter the better! By including keywords inside of the link will help crawlers to better understand whats that particular url about.
Good Luck
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Internal links: How do I find keywords that are not linked to a URL?
Hi Moz members I'd really like to place an internal link of every instance of an important keyword phrase "cycling caps" or "cycling cap" to my eComm category page
Link Building | | andystorey
https://www.prendas.co.uk/collections/headwear/cotton-caps I feel this would not only help my customers browsing my store, but I believe it will help from an SEO perspective. How can I search my site using Moz, Screaming Frog, Google etc to find every time cycling cap(s) is used but is not linked to the above URL? I can then apply the same for cycling jerseys, socks, etc Andy0 -
What's the difference between these 2 url's in wordpress
https://www.yourdomain.be/blog/-test-article/
Link Building | | conversal
https://www.yourdomain.be/blog/test-article/ What is the difference in wordpress with this "-" in the url? Both url's show the page like it's supposed to. Is this normal?0 -
Better Business Bureau
Two questions about BBB. 1. The PA for some company listings is 0 and the PA for others is much higher. Is this because some companies have a link back to their listing and others do not? 2.I checked a random sample of companies with links from BBB to their company site, but the links are not listed in the OSE. Why is that? Best,
Link Building | | ChristopherGlaeser
Christopher0 -
Last Linkscape index update
I noticed that under my link analysis that it said: "Last Linkscape index update: 08/14/2012." I would like to try to get a full understanding of what this means? Is this stating that my competitive Link Analysis and link metrics have not been updated since August?! Any help and tips would be much appreciated. Thanks!
Link Building | | dancody20 -
Two link building proposals, which one is better?
Hi there, Our site has a DA of 73, MozRank 5.40, MozTrust 5.88, and over 45,000 external links. We haven't done any offsite SEO before, we got to where we are today organically. We're thinking about hiring a link building firm to help increase our rankings and we've received two proposals. Firm A offered to build us 30 links from DA 50+ sites over 3 months. The anchor text will most likely just be our domain name. Firm B offered to build us 90 links from PR2+ sites over 3 months. They have control over the anchor text. Given our site's profile, which proposal makes more sense for us? Would either of these initiatives move the needle for us? Thanks.
Link Building | | anonp1 -
My URL has certain powerful in-inks that do not show up on Open Site Explorer not even as No-Follow, why could that be?
The specific pages are: http://www.venere.com/blog/5-things-to-know-about-eating-out-in-rome/ see the anchor text Eating Italy Food Tours in Rome http://www.foodtourpros.com/testimonials/ see anchor text Eating Italy Food Tours in Rome
Link Building | | EatingItaly0 -
Best way to index backlinks
We have created many high authority back links for our clients and after several months we have noticed 10% or so have actually been indexed (via multiple sources). I am trying to find a way to easily get these backlinks indexed. There is a bunch of software out there, some create RSS feeds and others social bookmark these pages. Any suggestions?
Link Building | | waqid0 -
Some doubt about news section URL
I have a simple question, I have a website and i want to create a news category. I want to know what is the best way to create a url friendly for this category. I was looking around for news website like New York Times, and others, they use a format like this for the url http://domain.com/year/month/day/category/ etc. My question is about the use of the date in that format, like subdirectory, can somebody explain me about it. Any reason to use this format? What is the diference between using this format like: http://domain.com/news/çategory/article-date-id.html and this one use for the new york time shown before. Wich one will be work better? Thank You so much for your help
Link Building | | NorbertoMM0