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
-
My Backlinks are indexed in Ahrefs But Not Indexed in MOZ. Why?
I Create backlinks for my website to Increase DA But Backlinks are indexed and Ahrefs Show that backlinks but MOZ is showing backlinks. I am confuse Can you explain?
Link Building | | Seogamesokay1a1 -
Shortened URLs Passing Link Equity?
Hi everyone, I was going through a competitor's backlinks, and I noticed they had a number of links from ow.ly and bit.ly that according to Open Site Explorer were passing link equity with PA in the 40 and DA in the 90s. How does that happen? And, how can I duplicate that? I thought those services just shortened your URLs for Twitter feeds mostly, and Twitter no-followed everything. Thanks for any assistance you can provide! Ruben
Link Building | | KempRugeLawGroup0 -
Buying keyword urls for local traffic
Hi, I've been told that there is a real benefit in buying up local domain names and setting up mini adverts to your core website... is this actually true? Seems a strange practice. Example: If I had a car cleaning site called 'MozCarCleaning.co.uk' and the company was based in London. Then I'd buy related domains, 'LondonCarCleaning.co.uk' , 'CarValetLondon.co.uk' and make mini websites which then link to the main site. Alternatively, would it be worth just 301 redirecting directly to the core site? Thanks.
Link Building | | MatthewJamesRiley0 -
Why articles submitted to squidoo not indexed by google
Hi, I have written a few articles and uploaded to squidoo/hubpage last month and they have been accepted and I can see the links in the articles. But they dont appear in the latest link report from Google Webmaster Tools. Is it because it's delay or Google simply wont treat them as valid links? Thanks
Link Building | | LauraHT0 -
Do I get any link juice from a PHP header redirect from another site?
For example would: www.site-A.com/click-tracking.php?site=www.site-B.com contain any link juice? Would a 301 redirect be the simple solution?
Link Building | | David_Viciedo0 -
Making sure links get indexed by google?
Hi I currently submitted to 30 seo directories & I just want to make sure my links get indexed by google so the link value passes onto my site. Any suggestions about getting my links indexed? I was thinking of either pinging or social book marketing the links! What's your view, thanks.
Link Building | | Socialdude0 -
How can I reduce nofollow links to get better rankin?
In my campaign there are lots of nofollow links while my competitors dont have those links and they are better ranked in search results. What should I do to decrease thos nofollow links?
Link Building | | tanveers0 -
Should I use a branded url or an exact match, and which branded url?
I'm thinking of changing my client's 37 character exact match url because it looks spammy to me and Google says it will be turning the dial down on exact match domains. I still see a lot of value in it however and it is helping this client, albeit very little since he is new in his arena. His goal is to rank for keywords in that url so I hate to lose the benefit of that url. As an example, let's say his url is floridahealthinsurance-quote.com I'm concerned now because I plan to do some reputable and highly relevant link building and I'm afraid bloggers might hesitate linking to a spammy sounding url. This client does have a branded url that is short and sweet, something like millerbenefits.net, and that redirects to the long url. Back linkers could link to the short url instead. However, it lands people on the site with the long spammy-sounding url and they may not want to be affiliated with it. Something like millerbenefitsinsurance.com is available and it does have 2 keywords in it. Should I get that instead? In short the question is this:
Link Building | | KatMouse
Should I change or keep floridahealthinsurance-quote.com If I should change it, should I change it to:
millerbenefits.net
millerbenefitsinsurance.com Thanks for your help!0