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
-
Backlinks not indexed on MOZ
Why our backlinks do not show up? Even GSC shows a good amount of our backlinks and other applications show too. But in the case of MOZ, it still shows 0 backlinks and 0 organic visibility. Don't you guys think this puts a user of your software way behind in terms of competition and real data? If my backlinks will be considered by MOZ, when will it be❓
Link Building | | MariApps0 -
Linkbuild on 'new' or 'old' url?
Hi, I'm trying to rank for a keyword. For the last year and 4 months the rank hasn't changed much. It stays on the 3th page. Within this period the rank has first gone down and then up. Three months ago I started doing linkbuilding for the url the keyword was linked to. This is a main category page. Lately, I don't know when exactly I've discovered that the keyword is ranking for a different url, a product category of these items for 1 brand. I'm wondering if it's wise to shift my focus and start using the 'new' url for linkbuilding? The 'old' url isn't in the top 100 for the keyword. However, if you search for the url in Google, it shows up. And, if I'm advised to shift my focus to the 'new' url, is it advisable to go back and change the backlinks to the 'new' url? A question related to the above one, is there another tool like Open Site Explorer which shows you an overview of the backlinks directing to a deeplink? Like MajestickSEO. I'm trying to get the most extensive overview possible. Thanks in advance.
Link Building | | anubis20 -
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 -
Redirect 301 multiple url to frontpage
I have a lot of /dummy.php/xxx pages that i would like to redirect to the front page. /dummy.php/100
Link Building | | Morten-Hjemmesider
/dummy.php/101
/dummy.php/102
..... redirect 301 /dummy.php/WILDCARD http://www.domain.com I can not figure it out?0 -
Sitemap indexing problem
I changed some links of my website and deleted some links and created some links. After that I generated a sitemap again and re-submitted to google webmaster. I used 301 redirects for deleted or changed links and there are no broken links on my site (this is confirmed) sitemap was generated from here http://www.xml-sitemaps.com/ in my sitemap 285 links are present but google webmaster is showing that only 218 links have been indexed. Also my traffic felt down considerably since last 2 days ever since i submitted my new sitemap. Also when I searched for my sitename in google, it showed top 6 results within the site now it is just showing top 2 results. for reference my website is www.geekwik.com HAVE I DONE ANYTHING WRONG? OR IS THERE A MORE AUTHENTIC PLACE TO GENERATE A SITEMAP. REALLY APPRECIATE ANY HELP ON THIS.
Link Building | | geekwik0 -
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 -
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