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's the difference between these 2 url's in wordpress
https://www.yourdomain.be/blog/-test-article/
Link Building | | conversal
https://www.yourdomain.be/blog/test-article/ What is the difference in wordpress with this "-" in the url? Both url's show the page like it's supposed to. Is this normal?0 -
Toxic Link Removal-Better to Pay an SEO Firm or Can I Do It Myself?
Hi Jen: Recently an SEO audit from a reputable SEO firm identified almost 50% of the incoming links to my site as toxic, 40% suspicious and 5% of good quality. They are of the opinion that it is imperative to remove the toxic domains. The fee for toxic link removal is about $3,000.I would prefer to save the $3,000 but would prefer not to take the risk of screwing up my ranking if this is a complex procedure best left to SEO professionals. My assumption is that link removal will involve identifying the toxic domains, requesting removal and eventually submitting a Google disavow request. Can I do this myself or is there a big risk of screwing it up? Assuming it is safe for me to remove toxic links, would anyone suggest software of tools for doing so? Thanks so much.
Link Building | | Kingalan1
Alan0 -
How to make google index the page title has changed ?
Google has indexed all my websites, but I have to change some title in the website but when checking google does not update the change.
Link Building | | tuananh0688
Please help me .
My site : http://blog.addme.vn0 -
Why articles submitted to squidoo not indexed by google
Hi, I have written a few articles and uploaded to squidoo/hubpage last month and they have been accepted and I can see the links in the articles. But they dont appear in the latest link report from Google Webmaster Tools. Is it because it's delay or Google simply wont treat them as valid links? Thanks
Link Building | | LauraHT0 -
Which is better for linkbuilding - Internal or external blog?
Well, here's one for the linkbuilding experts. I'm having a discussion with a client regarding a linkbuilding campaign utilizing a blog. Which is better: A. Setting up a blog on a subdomain (blog.website.com) and anchortextlinking to main domain (website.com/page)? or B. Setting up a blog on an external domain (external-blog.com) and anchortextlinking to client domain (website.com/page)? I've had success earlier with a blog on a subdomain (solution A), but everyone in the internets-sphere says external links is better.... Well, which is it?
Link Building | | Bolius0 -
Tiny Urls Passing on links
I setup a few tiny urls last week to test if the pass on any page authority. Is this something you have tried and tested ?
Link Building | | onlinemediadirect1 -
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 -
Are In bound links to a Custom URL ineffective
Hi All, I would like to know what would achieve the best inbound link ranking from google. I have to run an inbound link campaign and have to choose between two options: Option 1, get people to link directly to the home page or Option 2, get people to link to a custom url (for example, www.domain.com/index.aspx?dealer1455) the custom url has a function to hide certain menu items on the home page. Also The custom url ID number will also change for each person that links to us. So in effect each link is directed to an individual custom URL. My preference is option 1. But a number of the people linking to us would prefer to link to a custom home page that has their competitors details hidden. At the end of the day the decision needs to be made on what will provide our site with the best rankings in the serps What option is best to improve search engine rankings ? Many Thanks in advance
Link Building | | SaimanRhino0