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
-
Why MOZ just index some of the links?
hello everyone i've been using moz pro for a while and found a lot of backlink oppertunites as checking my competitor's backlink profile.
Link Building | | seogod123234
i'm doing the same way as my competitors but moz does not see and index lots of them, maybe just index 10% of them. though my backlinks are commenly from sites with +80 and +90 DA like Github, Pinterest, Tripadvisor and .... and the strange point is that 10% are almost from EDU sites with high DA. i go to EDU sites and place a comment and in lots of case, MOZ index them in just 2-3 days!! with maybe just 10 links like this, my DA is incresead from 15 to 19 in less than one month! so, how does this "SEO TOOL" work?? is there anyway to force it to crawl a page?0 -
My links are not Getting indexed in Moz
Hi Moz family i have a website relate to air purifier and i purchased 5 to 10 gigs for different sort of backlinks but 4 weeks gone still i have not seen any backlinks are indexed in moz but 40% are indexed in ahref Any body can please explain how can they will indexed? Any best indexing method? Thanks
Link Building | | bradyknaus1 -
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 | | Seogamesokay1a0 -
Does having '?search' in a URL affect the page quality?
In our Costume Themes category on our website, http://www.costumedirect.com.au/themes/, the links direct to search pages with URLs containing the term '?search'. For example, the 'Edward Scissorhands' link directs to http://www.costumedirect.com.au/search.php?search_query=edward. Will the question mark and 'search' in our URL affect the page quality and rankings? Thank you.
Link Building | | CostumeD0 -
Which tools/techniques do you use for backlink indexation?
Hello All, I was wondering if you have a list of sites, tools or best practices in order to get your new backlinks indexed sooner by Google. Thanks a lot in advance! Luis
Link Building | | Yeeply.com0 -
Correct URL Structure Question
Dear Moz Community, I have a quick question regarding my internal link structure. Which route would be the best way to design my website? Option A)
Link Building | | CFSSEO
MYSITE.com/category/make/model/state/city Option B)
MYSITE.com/category-make-model-state-city.aspx I've been reading a lot of articles regarding link structure by Matt Cutts (or at least referencing him), but I'm not sure what the best practice is for today. Any information or references would be great. Thank you very much!0 -
Are .edu links really better?
Getting .edu links seems to be the Holy Grail for many SEOs and link builder. I understand how difficult it can be to get a link from a .edu domain that happens to cover topics in your industry. What I am wondering is, has there been any studies/tests to determine if .edu links are more powerful that a link from a trusted/relavant .com? All things being equal (DA, PA, etc.), is the .edu better? What if the .com has slightly better metrics, is the .edu still better for SEO? I haven't been able to find any expert blog posts about the added value.
Link Building | | inhouseseo1 -
Is it better to link back to the root domain, or the specific page you're optimizing for?
I'm working on a project our site - building links for iPhone Repair. For the term "iphone repair miami" - is it more ideal to link to the root domain (xxx.com) or to the subpage that is about iPhone Repair (xxx.com/iphone-repair)? I would imagine the latter - but obviously that page has less authority than the root. Thanks!
Link Building | | preemo0