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
-
Backlinks not indexed on MOZ
Why our backlinks do not show up? Even GSC shows a good amount of our backlinks and other applications show too. But in the case of MOZ, it still shows 0 backlinks and 0 organic visibility. Don't you guys think this puts a user of your software way behind in terms of competition and real data? If my backlinks will be considered by MOZ, when will it be❓
Link Building | | MariApps0 -
External links to my non-indexed pages
If an external site links to one of my non-indexed pages, will that still pass link juice and help with my domain authority? Thanks!
Link Building | | mztobias0 -
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 -
Same Page, Multiple URLS- Canonical tag? Redirect?
I just read this article about how google views multiple versions of the same page as different pages of duplicate content. My website, www.telikin.com currently has many versions of the home page. There is: www.telikin.com
Link Building | | Telikin
www.telikin.com/index
www.telikin.com/index.php
www.telikin.com/index.php/ All of these seem to be their own URLS, If i use the open site explorer tool to search for links pointing to these URLS, the www.telikin.com domain shows about 700 links, and the www.telikin.com/index.php shows about 63 links. My questions: Is my SEO suffering as a result of having these different pages? Does google realize that links pointing to www.telikin.com/index.php should count towards the seo of the www.telikin.com page? If this is hurting my company's website, how do I solve this problem? I am not versed as a webmaster, so I don't understand what the best course of action would be. Should I request that our webmaster somehow redirects all traffic from the other URLS to the main www.telikin.com URL? Should I be using canonical tags on all important pages? If i do, for example, use a canonical tag on the www.telikin.com page, will Google then know to send all link juice from the www.telikin.com/index.php page to the www.telikin.com page? We also have a Joomla blog that seems to duplicate pages many times over, but that is a problem that I will have to address another time. Any comments/suggestions are more than welcome. Thanks, Dave0 -
How to find all banklinks for a URL that forwards to a main URL
I have a client (yea! my second one doing seo) who has a law firm. He has a main site and then another site that just forwarded to his main website. He wants to find all the directories (and other places on the web) where his second site is listed. At the time when he was adding his firm into the directories, he was using his secondary url but now he wants to go back and use his main website. Unfortunately, he doesn't have a log of every place he added himself. I tried just searching Google for "mysecondarywebsite.com" (in quotes)for example but the SERPS return listings that aren't right. Suggestions?
Link Building | | Czubmeister0 -
Does google extract out keywords from links that use the url as the anchortext?
If someone formats a link like so: http://www.somedomain.com/keyword1-keyword2/keyword3.php Would you still get a similar anchor text benefit to this link as if it was formated like so: somedomain keyword1 keyword2 keyword3 what i mean is, does google extract out keywords from links that use the url as the anchortext?
Link Building | | adriandg0 -
Does the url text count as anchor text in google's algo?
I always try to strive for getting good anchortext in links that people link to my sites with, but sometimes they are not very web savvy, or just plain not willing to format the link the way i want it and we end up with links that use the URL as the anchortext. My question is, if i format a url such that it has keywords in it, and when someone makes a link like this: http://www.storwell.com/self-storage-toronto-bursary-application-form.php does google consider the words: storwell, self, storage, toronto, bursary, application & form as the anchor text?
Link Building | | adriandg0 -
Factors affecting google places citation indexing
I'm sure we have all been there; filling out yellowbook/yahoo/citysearch/merchant circle citations flawlessly, only to wait months and months for google to decide if they're worth 'attaching' to your places listing. I still believe that the number one factor for getting them to stick is consistensy of information, however my question is what factors affect the speed of 'stickiness'. I've implemented google alerts and rss feed/link pinging services to get citations from hotfrog and BOTW indexed almost the same day, however after examing the google places listing, I'm not showing them as listed as citations; which leads me to my next point; that google places could possibly have their own 'indexing rules and speed?' I've heard several suggestions on how to accelerate indexing, and quite a few of them included building backlinks TO these citations to improve pagerank. Do mozzers have any 'foolproof' ways of getting these citations to 'stick' to google places listings within days, or weeks, instead of months?
Link Building | | ilyaelbert0