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
-
Give a Solution my DA is not increasing and not index my backlinks in MOZ??
DA of my website online is no longer increasing. It seems like Moz is not indexing my backlinks. Multiple backlinks of my website online BasketballShoes are now not indexing in Moz that is why DA is not increasing.
Link Building | | fbowable
Backlinks of my site have indexed in both Ahref and semrush each now not showing in Moz. DR has elevated to 51 however DA is still 7. If all and sundry have the solution please let me know.0 -
Is it better to have backlinks from domains with medium DA, UR, using same language and good relevancy, or backlinks from domains with high DA, UR but using another language and with less relevancy?
Dear all, while I understand that quality backlinks with high DA, UR, same-language and relevancy would be best, would backlinks with high DA, UR but less relevancy and using languages other than the one used in my website be something good? Or would they do more harm than anything else and still be outcompeted by backlinks with lower DA, UR but same language and/or more relevancy? Thank you Frank
Link Building | | Frank_Smith0 -
HOW DOES A CANONICAL INFLUENCE OR IMPACT ON A URL WITH BACKLINKS?
I have url A with a canonical to URL B. How is the behavior of the backlinks profile on url A? If some put a backlink to url A count as a backlink for url B?
Link Building | | Linio0 -
Any Instant Indexeing social Bookmarking sites available on search engine or not?
I want to that my backlinks are instant indexed, so is any social bokkmarking sites availble when backlinks can instant indexed then please answer me.
Link Building | | renukishor0 -
How to index Backlinks Fast in Google!
I Made few backlinks with my keyword but they are not getting index and it has been for 15 days. Do you have any idea that will help me out to solve this problem and also to index back links quickly.
Link Building | | rohitdeveloper0 -
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 -
Which tool is best for analyzing link prospect urls
Hi Mozers, I am currently looking for the best tool for analyzing bulk urls which are potential link prospects. I would like information on seo quality metrics like rel=nofollow etc. Your advise is much valued. Thanks, Fuad
Link Building | | Fuad_YK0 -
Marketing URLs - best practices
Hi, We do have a consistent url structure like http://www.company.com/productname-london
Link Building | | ecnic
http://www.company.com/productname-auckland
etc. Now marketing wants to include each URL in our yearly printed catalogue.
Out of marketing reasons (I agree with that), they think the URLs are too long and should be for example: http://www.company/london
http://www.company/auckland
etc. Our brochure is very important for direct customers and we have a target group that actively uses the internet and social media and therefore will pick up these links. Even if we do correct redirects in the background - couldn't we have the problem
that we have a double set of urls? What do you think about that?0