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
-
Canonical vs 301 for index.php
Hello, we found recently quite a big error our index.php file had no canonical tag nor was a 301 redirect. So we put a canonical tag to it that it's the main www.examle.com duplicate . Now is there any difference in regards to link juice or Google 301 vs canonical tag ? I read that moz did a 301 from their index php. I understand one difference is that user then can Type in the URL if no 301, but I'm interested about ranking effect of it.
Technical SEO | | advertisingcloud0 -
Is it important to include image files in your sitemap?
I run an ecommerce business that has over 4000 product pages which, as you can imagine, branches off into thousands of image files. Is it necessary to include those in my sitemap for faster indexing? Thanks for you help! -Reed
Technical SEO | | IceIcebaby0 -
Penalty on two primary keywords
Hi Seomoz, I have been strugling to get www.texaspoker.dk out of what seems to be a keyword specific penalty (we are on page 5 on "poker" and "online poker"). First I thought it was Penguin related, but I'm not so sure any longer. I have removed all the bad links to my site possible (it's not easy to get other people to remove links, I can tell you), and I have reported all the links that I would like google to "ignore" (reconsideration request) ... all in all I have requested for reconsideration 5 times, and - despite some small changes - I got the same answer every time. We violate the quality guide lines and we should be looking for unnatural links pointing to our site. If any one - by having a look at our site - have any idea what could be wrong, please don't hold back, we would love to hear your point of view. Right now we are in the middle of making our partners take off their site wide links to us (the partners you'll find if you click the flags to the right in the top of the home page). On Texaspoker.dk we only link to the partners from the home page, but maybe we should consider to take of even these links? No one is really clicking on them anyway. Another thing, which is only under consideration, is to ask our partners from Betxpert.com (with whom we have exchanged our news feed - you will find their feed if you schroll down the home page) to set the feed to "no follow" and do the same our selves. What do you think of this thought? As far as I can see, there is nothing wrong with the on page optimization, but maybe some one can see what I don't see? Again - what ever thoughts you guys may have - shoot ... i'm ready to take all bulets 🙂 Thanks in advance! Nicolai, Texaspoker.dk
Technical SEO | | MPO0 -
Description and Title keyword Not showing in Google SERP?
It appears our description and title have disappeared in Goggle and Bing search results. We currently did a update to Magento 1.7 and the robots.txt included this: User-agent: * Disallow: / But that is fixed in Google Webmaster tools and everything else looks good. Here is the site: http://www.oxygenconcentratorstore.com/ Any help would be awesome. Thanks. google_serp.jpg
Technical SEO | | chuck-layton0 -
A keyword suddenly dropping 25 positions in Gooogle
Hello, One of my clients have a new website (just 3 months old) and for some keywords it's already working quite well (some of them already on first page for organic search results in Google). But suddenly one of the keywords (just one) dropped 25 positions from one day to another, while the rest of them are ok and even getting better. What may be happening here? The only thing I have done for this keyword different to the rest is that I have created a few internal links (just 7 o 😎 using the keyword. The site is big, with around 60 pages including a blog. I know that I'm not being very explicit with the information I'm providing... Thank you in advance for your help!
Technical SEO | | Juandbbam0 -
Root vs. Index.html
Should I redirect index.html to "/" or vice versa? Which is better for duplicate content issues?
Technical SEO | | DavetheExterminator0 -
Which is better? Remove folder or fix the links and wait?
Dear Mozers, Recently I added a new language to one of my sites in a new folder (www.site.com/es/) but for some reasons many links got broken or were simply sending to a wrong page. This caused a bad indexing and it also showed a lot of duplicate content. I know how to fix it but my question is this: Is it better to remove the second language folder, fix it and then put it back up after a few months or just fix it now as it is and wait for G to come back and index the new links?
Technical SEO | | Silviu0 -
Should I repeat keywords at each folder level of my urls?
Hey Guys, I'm wondering which URL is preferable when targeting the keyword phrase "ski goggles" a) http://www.evo.com/shop/ski/ski-goggles.aspx or b) http://www.evo.com/shop/ski/goggles.aspx URL a includes the keyword phrase exactly with a dash but also repeats the word "ski" and feels redundant. Any research/ testing to support either case? Thanks a bunch. Will
Technical SEO | | evoNick0