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
-
Are links from charities really better than 'normal' links.
Hi Guys. Just wondering about this idea that links from Charities are particularly good. I've heard people say that links from .org sites are particularly strong. But anyone can get a .org domain, it's just that charities tend to use them more often. Right? I just don't get the logic. Can anyone give more detail about this? Is it a myth? Is there quality info on this topic I can check out? We're working with several charities at the moment, and they all seem happy to blog and link to us...so I just wanted to know a little more. Isaac.
Link Building | | isaac6630 -
The better my blog gets, the lower my rankings!
My blog was hit by Google Panda on July 21. My rankings dropped dramatically overnight. Nothing I do is helping. In fact, the day my guest post was published on one of the biggest blogs in my niche (DA over 70) my Google impressions dropped to an all time low and then got worse. (250 impressions and 12 clicks) You can see the first drop and the second drop in these screenshots and yes Google Webmasters and Google Analytics match. http://tinypic.com/r/2dvtvlj/5 http://tinypic.com/r/4u83t4/5 I am getting more fans, subscribers, traffic etc but my Google traffic just gets worse. I would really like to get some organic traffic! But I have no idea why this is happening. I checked manual actions and there is nothing. I cleaned up crawl errors and duplicate content. I get several backlinks a week within my niche from high authority sites. I just don't get it and I am very discouraged. What should I do?
Link Building | | 2bloggers0 -
Is it better to have a blog under your main website's domain or should the company's blog have its own domain?
Is it better to have a blog under your main website's domain or should the company's blog have its own domain? And if the blog is on its own domain, do links to the main site look good or bad to Google? Thanks! (And please feel free to add any other related advice you might have...)
Link Building | | Linda-Vassily0 -
Automated indexing software / website ?
I am entertaining the idea of using an indexing software / website. Would appreciate seomoz members user experience with those tools wether positive or negative .
Link Building | | sherohass0 -
Same Page, Multiple URLS- Canonical tag? Redirect?
I just read this article about how google views multiple versions of the same page as different pages of duplicate content. My website, www.telikin.com currently has many versions of the home page. There is: www.telikin.com
Link Building | | Telikin
www.telikin.com/index
www.telikin.com/index.php
www.telikin.com/index.php/ All of these seem to be their own URLS, If i use the open site explorer tool to search for links pointing to these URLS, the www.telikin.com domain shows about 700 links, and the www.telikin.com/index.php shows about 63 links. My questions: Is my SEO suffering as a result of having these different pages? Does google realize that links pointing to www.telikin.com/index.php should count towards the seo of the www.telikin.com page? If this is hurting my company's website, how do I solve this problem? I am not versed as a webmaster, so I don't understand what the best course of action would be. Should I request that our webmaster somehow redirects all traffic from the other URLS to the main www.telikin.com URL? Should I be using canonical tags on all important pages? If i do, for example, use a canonical tag on the www.telikin.com page, will Google then know to send all link juice from the www.telikin.com/index.php page to the www.telikin.com page? We also have a Joomla blog that seems to duplicate pages many times over, but that is a problem that I will have to address another time. Any comments/suggestions are more than welcome. Thanks, Dave0 -
Changing url from non www to www.
basically I have realised i have more page authority and links going to www.onestopmuscle.co.uk instead of onestopmuscle.co.uk. I use wordpress and have no clue how to make sure onestopmuscle.co.uk redirects to www. version. anyone have any ideas? I don't want to mess about with files or i'll most likely make the blog into a disaster.
Link Building | | FLEAR0 -
Linking to root domain or index page
While link building, should I link to index page of my website i.e www.mydomainname.com/index.html or should I link to root domain i.e www.mydomainname,com Also I see duplicate title error for index page and root domain in error statistic. How can I get rid of this.
Link Building | | ArtiKalra0 -
Reciprocal Link URL Question
I've been analyzing my competition and found some great directories with High DAs that require the Reciprocal code to be on the same domain as the submitted link . When I went to my competitor's website, the reciprocal link is not there. Does he/she put the link on their page, than have directory verify the code, and then remove the link? If anyone fully understands how this works, please let me know.
Link Building | | DmitryP0