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
-
What Should be the URL of third party blog for my website
Hi All, What Should be the URL of third party blog for my website. Lets say if i have a website xyz.com (which provide pest control services in New York City) and I want to create third party blogs on platforms like blogspot, weebly etc so should i create the blog url as xyz.blogspot.com or i can use a keyword in the blog URL such as pestcontrolnyc.blogspot.com? Which URL would be the best as per Google's guidelines. Note: I have already have a blog within the domain as xyz.com/blog/ and i do weekly posting on this blog. But at the same time i want to create 1-2 third party blogs to get some backlinks from other sources.
Link Building | | Mr.Suren0 -
PHP Redirection better than Nofollow?
Hello, if I have affiliate outbound links in my blogs, what's better in terms of SEO, to use PHP Redirection or Nofollow for those links? For example, instead of using nofollow for the outbound affiliate links, I can use some plugin for WordPress that does this: mydomain.com/affiliatesitename1 -> redirects to the affiliate link1. mydomain.com/affiliatesitename2 -> redirects to the affiliate link2. mydomain.com/affiliatesitename3 -> redirects to the affiliate link3. Is this better? Thanks.
Link Building | | BloggerGuy0 -
Backlink lag time or not indexed?
I've looked through a few questions relating to backlinks not showing up in Open Site Explorer and I've got the same problem. I want to understand whether my backlinks aren't showing in SEOmoz due to a lag time (some say 5 - 8weeks) or because google hasn't indexed them.
Link Building | | EdoubleD
For example: http://www.marquee-hire-directory.com/oxfordshire_marqueehire_2.html Or http://www.weddingdayangel.com/listings/katalystic-events/ My link is http://www.katalysticevents.com Am I doing something wrong here?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 -
Is it better to have a blog under your main website's domain or should the company's blog have its own domain?
Is it better to have a blog under your main website's domain or should the company's blog have its own domain? And if the blog is on its own domain, do links to the main site look good or bad to Google? Thanks! (And please feel free to add any other related advice you might have...)
Link Building | | Linda-Vassily0 -
Is it better to link back to the root domain, or the specific page you're optimizing for?
I'm working on a project our site - building links for iPhone Repair. For the term "iphone repair miami" - is it more ideal to link to the root domain (xxx.com) or to the subpage that is about iPhone Repair (xxx.com/iphone-repair)? I would imagine the latter - but obviously that page has less authority than the root. Thanks!
Link Building | | preemo0 -
I want to know that which is better option for link building through article submission.
which option is better for Link building through Article Submission and why? 1. submitting one article at 100 websites. OR 2. submitting 20 articles at 20 different websites.
Link Building | | pawankatak0 -
Longer Tail Keyword for URL and Anchor text
Hello If I am trying to rank for the term blue widgets as a primary, and also the term shiny blue widgets , and big shiny blue widgets as secondary - would the url /blue-widgets or /shiny-blue-widgets or /big-shiny-blue-widgets be better (all else equal) Would the word shiny / big dilute or affect of KW in the domain for the rankings for blue widgets (all esle equal) Regarding anchor text of inbound links, if the anchor text is shiny blue widgets, is that going to help me rank for both queries "blue widgets" and "shiny blue widgets" equally? (all else equal), or would including shiny, affect my ranking for "bliue widgets" Or is it better to keep the anchor text as just blue widgets (of course we could vary it) but Im trying to get a feel for how that would work as we are builfing some links I can control the anchor text. I hope this was clear enough Thanks Sam
Link Building | | Impact-2015550