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
-
Does more product pages mean better rankings?
We've recently been told that one of reasons why our site doesnt rank as well as a particular competitors because they have much more product pages than us. We can see that they have better quality links, which we are working on improving, which we sort of understand can be helping them beat us, but we didn't think that they would be ranked higher just because of more products. They also do not have much interesting blog / content on site. So should our limited resources be focused on getting better links, better content, or increasing our depth of product range? Thanks all.
Link Building | | onwardsandupwards0 -
How long does it take to get links indexed?
How long does it take Google Webmaster tools on average to detect links to my website? What about OSE? My site is fairly new (launched in January) and I've done some guest blogging -- I would think that some links from 3-4 weeks ago would be showing up by now. Am I just being impatient?
Link Building | | atstickel120 -
Bought links from sites with target keyword in their URL
One of my rivals in a competitive field (real estate) has done this deliberately and extensively -- it accounts for about 2/3 of his inbound links. Result: he's now #1. How strong a ranking factor is keywords in source URL - ie, how easy is it to beat with other ranking factors?
Link Building | | Jeepster0 -
Will Google penalize for backlinks on non-indexed pages?
Have a client who has a bunch of links from spammy sites that aren't even indexed by Google. Will Google penalize (i.e. Penguin) for backlinks from spammy sites that aren't indexed? I'm guessing "Yes, Google still crawls non-indexed sites and may penalize the sites linked to from the banned site." Anyone have any data or experience with this? Anyone have a non-indexed or banned site? Does Google still crawl it?
Link Building | | AdamThompson0 -
Best SEO Friendly URL
Hi. Currently I'm using the following url: mysite.com/this-is-the-news-title/news-1234 The news title followed by the directory and the news id. Same goes to mysite.com/my-name/user-123 I think its better for SEO since the relevant words (news title and name) are to the left of the link. But some people are saying that this is not good for SEO because crawlers can't "organize" the urls in directories. So they say its better to use: mysite.com/news/this-is-the-news-title/1234 mysite.com/user/my-name/123 Cause then the crawler know what is a news and what is a user. What do you guys think? Thanks.
Link Building | | rapchan0 -
My Yahoo Directory listing isn't being indexed by Google - what do to?
I couldn't find this elsewhere in Q&A...so here goes. I recently (a couple of months back) shelled out $300 for a Yahoo Directory listing. My site got included, but my PageRank didn't budge. Figuring it may take a while, I kept on checking Google's index for the link - still nothing. Now it seems as if some Yahoo & other directory categories are excluded from the Google Index, rendering the links useless from a PR point of view. Anything I can do about this? I've heard of suggestions like linking to the specific page of the category where I'm listed, in the hope Google will crawl and re-index, but I don't know. Any thoughts / suggestions? BTW the directory category link is: http://dir.yahoo.com/Business_and_Economy/Business_to_Business/Communications_and_Networking/Telecommunications/Wireless/Software. Thanks in advance...
Link Building | | dusanb0 -
What link would be better?
Okay, I found a niche blog that has a google PR6. They have a ton of dollow blogroll links, as well as a ton of internal links on homepage. Would I be better off getting the blogroll link? Getting a link in an existing post with a lower PR? Getting an advertiorial written with a link in it? I just don't know. It has a domain authority of 33 currently. It's not a cheap link for blogroll. The in-post, or advertorial isn't too bad, but not cheap either. Thanks in advance.
Link Building | | azguy0 -
URL in signature of discussion forum post
I used to see URL's in the signature part of discussion forum posts covering various topics but it does not seem popular anymore. It seems like a good way to build links and I am wondering why it is not used. Suppose I ask a question about proper tooth brushing technique on the forum at "toothbrushingforum.com" and user "ToothBrushWizard" is nice enough to answer my question. I used to see signatures like this: Good luck,
Link Building | | superTallDan
ToothBrushWizard
www.ToothBrushWizard.com Is this considered poor taste or are these links discounted by the search engines? Is it best to keep an updated profile with your URL and hope that forum users click through to it?0