Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
Keywords in file names vs folder names
-
We understand the value of a keyword phrase included in the URL. Is there more value to having that phrase in the folder name of the URL or the file name or does it matter?
Example:
http://www.biztoolsone.com/website-design.php
or
http://www.biztoolsone.com/website-design/
Which is best?
Thanks, Wick Smith
-
The short answer is, it does not matter.
The recommendation I would make is to use what some people refer to as "technology-proof" URLs. Drop the file extension. Why?
-
it looks cleaner and nicer to users
-
it makes it a bit harder (more work) for someone who wants to hack your site as they are unsure of your page's language
-
it gives you the flexibility to change technologies without requiring a new URL (from html to php for example)
The only difference between your URLs then would be the trailing slash. It is a matter of personal preference but I add the trailing slash to indicate a folder, and no slash to indicate it is a file.
Matt Cutts has a couple videos on URLs and file names which you may enjoy:
-
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
-
301 vs 302
Hello everyone! I'm working with a site right now that is currently formatted as subdomain.domain.net. The old version of the site was formatted as domain.net, with domain.com and several other variants redirecting to the current format, subdomain.domain.net. All of these redirects are 302, and I'm wondering if I should have all these changed to 301. Many of our old backlinks go to the old format of domain.net and i know the juice isn't being passed through, but i was wondering if there is any reason why you may want a 302 over a 301 in this case? Any insight would be appreciated. Thanks!
Technical SEO | | KathleenDC0 -
Question about keywords on multiple pages
Hello all great to be apart of this community, My question is: I am trying to rank for two separate "two keyword" searches which are "BBB boost" and "ZZZ boost" I am planning to put "ZZZ boost" on my homepage/landing, and "BBB boost" on my second page where the end user actually purchases said product. "ZZZ boost" - receives around 22,000 monthly searches and "BBB boost" - around 5000 monthly searches Because each of these share the one keyword "boost" in them, will it affect my ability to rank for even one page on the "two keyword" phrase? Or will it cause both pages to come up in the google search results on either "two keyword" phrase because they share the same word "boost" in them? If so does that affect the ability to rank 1 page since they share the same domain name, will it divide page ranking/serp ranking?
Technical SEO | | zerk890 -
Does a country specific TLD implicitly influence the full country name for keyword matching?
[Hypothetical situation - domain, country and industry changed] Let's say I have registered http://mybrandname.hk (i.e. Hong Kong) and my goal is to reach people in all global locations searching for Hong Kong hotels. The target audience will almost always put "Hong Kong" into their query, e.g. they might search for "Marriott Hotel Hong Kong". Does the .hk TLD implicitly give me a match for "Hong Kong" or would I structure my URLs such that all hotel info pages fall under a top level subdirectory "hong-kong". i.e. is it enough to have a structure like: http://mybrandname.hk/hotel/marriott Or should I have it like: http://mybrandname.hk/hong-kong/hotel/marriott ? It is safe to assume that other on- and off-page best practices will be followed, e.g. links from other Hong Kong sites, some backlinks anchor text including "hong kong", etc. Of course Marriott is just one example, there would be hundreds of hotels in this example.
Technical SEO | | WellsxiFkrI20 -
Duplicate Content Vs No Content
Hello! A question that has been throw around a lot at our company has been "Is duplicate content better than no content?". We operate a range of online flash game sites, most of which pull their games from a feed, which includes the game description. We have unique content written on the home page of the website, but aside from that, the game descriptions are the only text content on the website. We have been hit by both Panda and Penguin, and are in the process of trying to recover from both. In this effort we are trying to decide whether to remove or keep the game descriptions. I figured the best way to settle the issue would be to ask here. I understand the best solution would be to replace the descriptions with unique content, however, that is a massive task when you've got thousands of games. So if you have to choose between duplicate or no content, which is better for SEO? Thanks!
Technical SEO | | Ryan_Phillips0 -
Tags - what keywords should i add ?
Hello 🙂 When I am adding tags to my post, what keywords should i use for tags and how many tags i should add per post ? Should i use keywords from title of post , focus keyword or something related to post ? my blog is http://www.dota2club.com/ Thank you !!!!
Technical SEO | | wolfinjo0 -
Use of Robots.txt file on a job site
We are performing SEO on a large niche Job Board. My question revolves around the thought of no following all the actual job postings from their clients as they only last for 30 to 60 days. Anybody have any idea on the best way to handle this?
Technical SEO | | WebTalent0 -
301 redirects and old domain names
Thanks to the great advice i've received on this forum, I'm combining 50 different truck sites into a single, ultimate truck website. So my question is how long should I make a website 301 redirect to the appropriate page on my new website? My thought is that if it works well to have a single website, it might be nice to eventually sell off some of the old domain names that I won't be using anymore. Thanks! Andy
Technical SEO | | daenterpri0 -
Using Thesis as blog platform vs. Tumblr
I read a lot of advantages by using Thesis as a platform for blogging, but I like the themes and other plugins from Tumblr. Are there equivalents at Tumblr to the Thesis benefits so I can go a head and go with Tumblr?
Technical SEO | | HyperOffice0