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 are my total links to site going down but my average position keeps getting better on Webmaster?
Google Search Console says I have 141 Total Links. 2 months ago, I had 160 links. My average position went from 60.1 to 58.9.
Link Building | | guerratheron010 -
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 -
Bought links from sites with target keyword in their URL
One of my rivals in a competitive field (real estate) has done this deliberately and extensively -- it accounts for about 2/3 of his inbound links. Result: he's now #1. How strong a ranking factor is keywords in source URL - ie, how easy is it to beat with other ranking factors?
Link Building | | Jeepster0 -
Could google recognize urls in data-attributes?
Hi, could google's crawler recognize the following example as a link and will be crawl the url? any experience? ty for your help
Link Building | | censeo0 -
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 -
Question on backlinks indexing
Hello, my site is fairly new and I started building a lot of backlinks to it by posting my 5 from my website to several different web 2.0 and then posting all those 5 articles again to different article submissions + getting social bookmarks to my main site as backlinks. My question is: Should I throw all those backlinks in an indexer to get them all indexed at once / ping them all OR do I let google crawler naturally find them and index them itself sort of like 'dripping' as it will find it one by one; stack by stack? I would also like to know why Yahoo! hasn't indexed my site yet 😞
Link Building | | 6786486312640 -
URL in signature of discussion forum post
I used to see URL's in the signature part of discussion forum posts covering various topics but it does not seem popular anymore. It seems like a good way to build links and I am wondering why it is not used. Suppose I ask a question about proper tooth brushing technique on the forum at "toothbrushingforum.com" and user "ToothBrushWizard" is nice enough to answer my question. I used to see signatures like this: Good luck,
Link Building | | superTallDan
ToothBrushWizard
www.ToothBrushWizard.com Is this considered poor taste or are these links discounted by the search engines? Is it best to keep an updated profile with your URL and hope that forum users click through to it?0 -
Longer Tail Keyword for URL and Anchor text
Hello If I am trying to rank for the term blue widgets as a primary, and also the term shiny blue widgets , and big shiny blue widgets as secondary - would the url /blue-widgets or /shiny-blue-widgets or /big-shiny-blue-widgets be better (all else equal) Would the word shiny / big dilute or affect of KW in the domain for the rankings for blue widgets (all esle equal) Regarding anchor text of inbound links, if the anchor text is shiny blue widgets, is that going to help me rank for both queries "blue widgets" and "shiny blue widgets" equally? (all else equal), or would including shiny, affect my ranking for "bliue widgets" Or is it better to keep the anchor text as just blue widgets (of course we could vary it) but Im trying to get a feel for how that would work as we are builfing some links I can control the anchor text. I hope this was clear enough Thanks Sam
Link Building | | Impact-2015550