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
-
Which backlink is better for increasing my MOZ DA ?
Hello Moz Community, I have sports niche website bongdatructuyen.site. I am in process of link building for my website. May i know what should i do to increase DA of my site? Is there any way to increase my site Authority through increasing DA of my site and Keyword difficulty? Thank you !
Link Building | | gogoanimetp0 -
Post index of quality back links; How long should you leave it to see if it's had any impact?
The question is pretty much in the title. We had a link from a Charity site (high PA/ DA) and from Metro online recently. Indexed about 3 weeks ago and 5 days ago respectively. No movement to speak off. (Previously we've seen significant boosts from far lesser links). Should I assume they have had no effect? Or is too early to tell I know it takes up to 2 months for some of our new pages to rank, same with passing authority from links? (Note: I appreciate the competition will play a significant part in this, but my question is specifically about how long one should leave to know one way or another. )
Link Building | | isaac6630 -
Better Business Bureau
Two questions about BBB. 1. The PA for some company listings is 0 and the PA for others is much higher. Is this because some companies have a link back to their listing and others do not? 2.I checked a random sample of companies with links from BBB to their company site, but the links are not listed in the OSE. Why is that? Best,
Link Building | | ChristopherGlaeser
Christopher0 -
Why does my infographic rank better on other websites than my own?
I recently created an infographic that was quite popular in my niche and a lot of people linked to it and embedded it on their own sites. Now, if you search the term I was trying to rank for, everybody who linked to me ranks higher than the page that everyone is linking to and it's the page where the original graphic was posted. According to SEOmoz, I have the highest Domain and Page Authority than everyone else in front of me. How the hell is this possible? If you want to see for yourself, just type in "hot tub yoga" into Google and I'm on the second page, http://www.swimuniversity.com/blog/hot-tub-yoga-infographic I would love some help on this and I thank you all in advance.
Link Building | | mattgiovanisci0 -
Will Google penalize for backlinks on non-indexed pages?
Have a client who has a bunch of links from spammy sites that aren't even indexed by Google. Will Google penalize (i.e. Penguin) for backlinks from spammy sites that aren't indexed? I'm guessing "Yes, Google still crawls non-indexed sites and may penalize the sites linked to from the banned site." Anyone have any data or experience with this? Anyone have a non-indexed or banned site? Does Google still crawl it?
Link Building | | AdamThompson0 -
I want to know that which is better option for link building through article submission.
which option is better for Link building through Article Submission and why? 1. submitting one article at 100 websites. OR 2. submitting 20 articles at 20 different websites.
Link Building | | pawankatak0 -
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 -
Does google extract out keywords from links that use the url as the anchortext?
If someone formats a link like so: http://www.somedomain.com/keyword1-keyword2/keyword3.php Would you still get a similar anchor text benefit to this link as if it was formated like so: somedomain keyword1 keyword2 keyword3 what i mean is, does google extract out keywords from links that use the url as the anchortext?
Link Building | | adriandg0