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
-
What backlink is better?
Hi Guys I recently helped out a friend with some marketing advice and to do me a favour back he said that he'll put a link on his site back to my website. Just some background on the site, it is very high quality with DA of 71 with each blog post/inner page having roughly PA of 45, it's been online for 15 years and has nearly 4,000 indexed pages and 10,000 links. Anyway my question is would it be better to get a sitewide link in a sidebar that is displayed on every page of his website or would it be better to write a blog post on the site that links back to mine? Thanks
Link Building | | jackalancurtis1 -
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 -
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 -
Why aren't my links being indexed
I am building backlinks from similar sources to 2 different domains. Domain A seems to get its linked indexed within a day or 2, while Domain B has virtually identical links that haven't indexed for over a month. Domain A is older and has more authority, and Domain B is hosted on a different server. Any insight into why this is happening? It's very frustrating.
Link Building | | insitegoogle0 -
Best SEO Friendly URL
Hi. Currently I'm using the following url: mysite.com/this-is-the-news-title/news-1234 The news title followed by the directory and the news id. Same goes to mysite.com/my-name/user-123 I think its better for SEO since the relevant words (news title and name) are to the left of the link. But some people are saying that this is not good for SEO because crawlers can't "organize" the urls in directories. So they say its better to use: mysite.com/news/this-is-the-news-title/1234 mysite.com/user/my-name/123 Cause then the crawler know what is a news and what is a user. What do you guys think? Thanks.
Link Building | | rapchan0 -
Best Way To Gain Some Quick Naked URL Backlinks.
Hi, Im looking to build as many naked URL backlinks in order to diversify my link profile more, I have alot of anchor text backlinks and I see alot of people getting punished for having alot of anchors texts and not many basic URL links. Any suggestions on how to get alot of these as soon as possible?
Link Building | | Prestige-SEO0 -
My URL has certain powerful in-inks that do not show up on Open Site Explorer not even as No-Follow, why could that be?
The specific pages are: http://www.venere.com/blog/5-things-to-know-about-eating-out-in-rome/ see the anchor text Eating Italy Food Tours in Rome http://www.foodtourpros.com/testimonials/ see anchor text Eating Italy Food Tours in Rome
Link Building | | EatingItaly0