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
-
Does a text URL (without hyperlink) provide any SEO value?
Our clients use the link shortener of our service software to share their job offers. Sometime the job baords they post to do not allow hyperlink and thus post the url as text only. Do these url texts offer any benfits in terms of SEO?
Link Building | | rflores0 -
Phone Call or Email Better
Hello, I had a Moz associate look at our niche, and he suggested using phone calls and emails for outreach. We are marketing an article that appeals to the humanitarian side of the organizations and companies we're contacting. We're contacting sites that are already listing useful articles. When you have the choice between a phone call or an email for outreach, which do you choose? The emails would be personalized, to a specific person when possible, and letting them know that we are a reciprocator by sharing across social channels and/or blog post commenting for them. The phone calls would be to the companies' general contact numbers. Which do you do first?
Link Building | | BobGW0 -
Url variables, page rank and canonical question
Hello.
Link Building | | adrianTNT
I am having some back-links to my site that look like: http://site.com/page.html**?source=a**
http://site.com/page.html**?source=b** I assume these two will have two different ranks, is this issue fixed if I use canonical on the landing page? Thank you.0 -
How long does it take to get links indexed?
How long does it take Google Webmaster tools on average to detect links to my website? What about OSE? My site is fairly new (launched in January) and I've done some guest blogging -- I would think that some links from 3-4 weeks ago would be showing up by now. Am I just being impatient?
Link Building | | atstickel120 -
Which tool is best for analyzing link prospect urls
Hi Mozers, I am currently looking for the best tool for analyzing bulk urls which are potential link prospects. I would like information on seo quality metrics like rel=nofollow etc. Your advise is much valued. Thanks, Fuad
Link Building | | Fuad_YK0 -
Two link building proposals, which one is better?
Hi there, Our site has a DA of 73, MozRank 5.40, MozTrust 5.88, and over 45,000 external links. We haven't done any offsite SEO before, we got to where we are today organically. We're thinking about hiring a link building firm to help increase our rankings and we've received two proposals. Firm A offered to build us 30 links from DA 50+ sites over 3 months. The anchor text will most likely just be our domain name. Firm B offered to build us 90 links from PR2+ sites over 3 months. They have control over the anchor text. Given our site's profile, which proposal makes more sense for us? Would either of these initiatives move the needle for us? Thanks.
Link Building | | anonp1 -
Some doubt about news section URL
I have a simple question, I have a website and i want to create a news category. I want to know what is the best way to create a url friendly for this category. I was looking around for news website like New York Times, and others, they use a format like this for the url http://domain.com/year/month/day/category/ etc. My question is about the use of the date in that format, like subdirectory, can somebody explain me about it. Any reason to use this format? What is the diference between using this format like: http://domain.com/news/çategory/article-date-id.html and this one use for the new york time shown before. Wich one will be work better? Thank You so much for your help
Link Building | | NorbertoMM0 -
Canonicals Url question
I manage a computer repair company website, www.callnerds.com One of our main marketing strategies are blog articles and press releases to newspappers. Because of this, we have a subfolder for the author of the newspaper articles who is becoming well known, and we wanted a place for people to connect with her personally. on this site callnerds.com/andrea We only publish articles that Andrea writes. Then on the blog we publish all of the articles, including articles that andrea writes, in addition to articles written by everyone else on our staff. i would like suggestions on wether a canonical link on the /andrea site should be used. the canonical link wold point to our blog. Her site is starting to get high quality links from newspapers and magazines, however all of the content on the site is duplicate content of the same article on our blog. Any thoughts?
Link Building | | NerdsOnCall0