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 -
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 -
Different URL (not homepage) showing up for main keyword
Hello, When we search for 'boutique hotels' the following URL appears on first page in Google UK: https://www.i-escape.com/united-kingdom/boutique-hotels While we're pleased to be ranking on first page, I was wondering why it hasn't picked up our homepage, as it has for our competitors. Does this simply mean Google deems this page more worthy of first page SERPs? Thanks again for your help Moz community!
Link Building | | iescape0 -
Keyword Domain URL structure
Hello all, We have a domain with one of the primary keyword within the domain itself (audisite) and reading through some of the topics, having a keyword within the domain itself seems to be not as significant as we had assumed. We currently have a URL strucuture ( http://audisite.co.uk/new-audi/a4 ) which we were thinking of modifying to something like audisite.co.uk/a4 based on the premise that the 'audi' keyword is already in the domain itself. Also in terms of URL optimization, which of these will be the most effective URL (if the content is exactly the same). Or is my whole approach incorrect to URL optimization fundamentally incorrect? /a4 /new-audi-a4 /new/audi-a4 /new-audi/a4 /new/audi/a4 I will be very grateful for any advice/suggestions/pointers. Thank you very much for your time.
Link Building | | nirpan0 -
Backlink lag time or not indexed?
I've looked through a few questions relating to backlinks not showing up in Open Site Explorer and I've got the same problem. I want to understand whether my backlinks aren't showing in SEOmoz due to a lag time (some say 5 - 8weeks) or because google hasn't indexed them.
Link Building | | EdoubleD
For example: http://www.marquee-hire-directory.com/oxfordshire_marqueehire_2.html Or http://www.weddingdayangel.com/listings/katalystic-events/ My link is http://www.katalysticevents.com Am I doing something wrong here?0 -
Will 404-ing a URL neutralise any bad incoming links?
We're cleaning up one of our sites which was affected by Penguin. If we rename an example page1.html (which has 400 bad incoming links) to page2.html (with no 301 redirects), will Google disregard the poor links entirely? So, page1.html will return a 404 page. Many thanks for your help. James P.S. I am aware that we may lose any positive link juice from any 'good' links which come in to page1.html.
Link Building | | bytestart0 -
Buying Branded URL's
Hello A competitor of mine has a bunch of branded terms that they purchased, with backlinks point to their main site, is there a specific reason they do this? If I analyze the links on the "branded url" theres it has very little juice/authority? Is it worth it to do this? ex www.siteCOUPON.com. or www.mainsite.biz I have a .ca and something similar to our site re-directing through register.com in Iframe. But would they just be using those terms because it has high search volume? Would this help me in anyway? Thank you!
Link Building | | TP_Marketing0 -
Why doesn't the Better Business Bureau show up in my link analysis
I've been working on SEO for one of the companies I've designed a website for and I'm confused by the company's lack of Better Business Bureau backlinks. The Company in question does have a BBB account and that account links back to the company's website. However, when I check in the link analysis for the site, the BBB link doesn't appear. My competitors, on the other hand, do have BBB links in their analyses. So, I'm wondering if I somehow don't have the right type of BBB account. The BBB seems to be a pretty good place to have a link from, and the company pays $300.00 per year for the membership, so I'd like to get the most out of it. Here's a link to the BBB page for the company http://www.bbb.org/utah/business-reviews/plumbers/platinum-plumbing-services-in-west-jordan-ut-22199778#bbblogo And here's the company's website www.slcplumbing.com Now, the company site I've just listed is 301 redirected to www.platinumplumbinginc.com, but even when www.slcplumbing.com was the main site, the BBB backlink didn't show up. Thank you Blake
Link Building | | BlakeMcGillis0