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
-
Is it better to develop a good keyword I found on a new page on an established website or make a new site?
So I found a keyword that I want to go after, it gets over 30k searches a month, has a 100% CTR and has a difficulty of 42. Now my question is would it be better to build a page on our already established site (DA of 46) since the site and keyword are both related. Or would it be better to get a domain of that keyword and build a small site about it? The .com is taken but I could get a .co or .us just not sure if its worth making a new site or if I should just build a page on my current site about it.
Link Building | | americancasinoguide0 -
Should my URLs with or without a slash? And how to avoid multiple redirects?
Moz, I am noticing that I need to go back and update my outbound links to your site. There are a lot of them because your content is so great and we love you guys. Could you explain your logic for making the change? Example on my Schema Markup Website Audits page: https://moz.com/blog/state-of-searcher-behavior-revealed/ redirected to: https://moz.com/blog/state-of-searcher-behavior-revealed
Link Building | | jessential0 -
Post index of quality back links; How long should you leave it to see if it's had any impact?
The question is pretty much in the title. We had a link from a Charity site (high PA/ DA) and from Metro online recently. Indexed about 3 weeks ago and 5 days ago respectively. No movement to speak off. (Previously we've seen significant boosts from far lesser links). Should I assume they have had no effect? Or is too early to tell I know it takes up to 2 months for some of our new pages to rank, same with passing authority from links? (Note: I appreciate the competition will play a significant part in this, but my question is specifically about how long one should leave to know one way or another. )
Link Building | | isaac6630 -
Central Index Directories
Hi all, I'm based in the UK and i'm looking to submit to a several directories under the central index umbrella, for example to these directories: http://findit.chad.co.uk/ http://directory.nottinghampost.com http://directory.burtonmail.co.uk/ I've filled my profile out and have submitted to one of the above directories, however when I sign in to one of the other directories it asks me to re-fill out all my details. Is there not a way i can submit to several of these directories by signing in without confirming my telephone number for each one ? Many Thanks in advance Paco
Link Building | | paco87230 -
Reversing Canonical URLs?
A few months back, we set up canonical URLs on some pages with duplicate content to give some newer pages more link juice. Now, we need to do the opposite and give that same juice to some of the original pages. If we set up canonical URLs on the newer pages to point back to the original pages, are we losing the juice we've been building all along? Sorry for all this convoluted juice talk. Hopefully, my point is getting across here.
Link Building | | frankmassanova0 -
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 -
Manually Submitting To Google Index
Whenever I structure a page for seo optimization & add new content, should I be manually submitting these urls to google via webmaster tools? Thanks!
Link Building | | TP_Marketing0 -
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