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
-
Absolute urls
I am redesigning my website with an updated theme.
Link Building | | patmatt
One of the theme plugins takes my url: https://example-site.com/1st-level-page/2nd-level-page/page-content and changes it to https%3A%2F%2Fexample-site.com%21st-level-page%22nd-level-page/page-content%2F Does this effect how a web crawler see's my internal links?
Can this have a negative effect on my SEO?
Should I edit the plugin to force it to render the url exactly as written?0 -
HOW DOES A CANONICAL INFLUENCE OR IMPACT ON A URL WITH BACKLINKS?
I have url A with a canonical to URL B. How is the behavior of the backlinks profile on url A? If some put a backlink to url A count as a backlink for url B?
Link Building | | Linio0 -
Better to redirect domain or to link from home page?
Hi, I have a niche directory and sometimes clients remove themselves because they have discontinued their business practice. If they sometimes provide me with their own website (as they will no longer use it either), is it wiser for me to: a) directly point their URL 301 to my own directory b) keep their website as is, and add a url link to my directory in their homepage c) keep their website as is, and add an anchored link with the industry keyword to my directory Thanks! D
Link Building | | Demosthenes0 -
How do I link specific keywords to a specific URL on my landing page? i.e.-Cloud Computing
Example keyword Cloud Computing California. How do I link this keyword on SeoMoz to a specific URL on my landing page?
Link Building | | SteelsmithGroup970 -
Creating new url structure for inbound links
In an effort to make is easier for our clients to link to content on our site we intend on creating a simpler url structure for them: site.com/1234 will 301 to site.com/xyz/abc/1234-this-is-where-we-want-you Is there a danger of creating new 301's just for this purpose, the goal here is to make it easier for clients to link to content and thus garner more inbound links.
Link Building | | antiquesearcher0 -
I cannot get any links indexed to this website http://atglimo.com.
I have written nofollow, follow links, issued a press release, and submitted to the Universal Business Listing. None of these links are showing in the Yahoo index. I did a nofollow bookmark with delicious and it disappeared the next day. The people that built the website will not grant FTP access and modded the HTACCESS file incorrectly to point to a WWW. version of the site. I had them remove the index.html duplicate content problem. What is going on? Why are no links showing in the index for this site?
Link Building | | eddie404ATL0 -
SEO Tool to search mass URLs (for link qualification)
Hi, I have been using OSE and have a compiled list of backlinks to my competitor's sites. The next step would be to go through and qualify all of these links for a link opportunities for my client's site. To save me a lot of time, I require a tool that will search all of these pages (say 1000) for specific keywords in tags or body content. A search query might be - site:(URL list) intitle:directory site:(URL list) "add site" etc Any ideas would be great. Thanks.
Link Building | | DigitalLeaf0 -
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