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
-
Keywords Declination
In German we have declination, i.e. we have the keyword "sicherheitskritische Systeme" which can get "sicherheitskritischer Systeme" when declinated. How does Google handle this? Do I have to rewrite all texts, so that the keywords are not declinated? (At least MozPro's ranking algorithm is sensitive and did not accept sicherheitskritischer" for the keyword sicherheitskritische"...) Rewriting might lead to quite awful sentences! Thnaks a lot Andy
Technical SEO | | a2stucki0 -
Optimize homepage or category for main keyword?
Hello, we have an advertisements website. Usually in each country we have this one "main" keyword which has the largest amount of searches. Now we have done both ways in different markets. Sometimes optimize the homepage www.example.com for the keyword, sometimes optimize **www.example.com/thekeyword **the category page. I do not have solid data which works better, as Keyword difficulties are too big to compare. The good thing with category is that i would have internal links pointing to it and keyword in the url. Questions: 1. Which do you recommend better?
Technical SEO | | advertisingtech
2. Will there be any benefits in optimizing category vs homepage? Thanks!0 -
Should you use the keyword for your page in an image?
Hi there! I am currently working on building up the SEO ranking on a page using a specific keyword - dresses. Within this page, we have an online image library full of dresses which are then added to multiple pages determined by brand, colour, type etc for people to search. I am adding hundreds of images all of dresses - I wanted to know if I name these images using the keyword: for example 'dresses_1, 'dresses_2' - will that have a knock on effect on page I am trying to build up and optimise for the keyword 'dresses'??? Any help is appreciated.
Technical SEO | | Jaybeamer0 -
Nginx vs. Apache, All Things Considered
Hey Peeps, I've been struggling lately with a new static site, and I'm looking for anyone's opinion who's had to optimize a site using Nginx. I understand that Nginx is recommended for static sites, however I want to avoid being in a situation where I can't do things like write redirect rules the way I want to. Considering that it will be hosting a Static site, are there any features or functions that Nginx lacks when compared to Apache, such as ability to write rewrite rules, etc.?
Technical SEO | | danny.wood1 -
Why has my keyword dropped and risen so much in only 7 days?
Sorry if this question is really obvious (or unanswerable) but my client asked me for an explanation and as a relative SEO 'noob' I couldn't really answer them. The client's site http://www.solentlep.org.uk/ dropped 29 places for the keyword LEP last week (all the other keywords had small rises and falls) and then this week has jumped back up the same 29 places. I made no changes to the site in the 7 period (as I hadn't worked out what to change) and although everything is fine now I'd still like to let the client know what caused the blip, or is it one of those things that 'nobody knows'.
Technical SEO | | bendyman0 -
Keyword Difficulty Tool
Hi, When can we expect the keyword difficulty tool to be operational again? Thanks
Technical SEO | | dt18072 -
Internal search : rel=canonical vs noindex vs robots.txt
Hi everyone, I have a website with a lot of internal search results pages indexed. I'm not asking if they should be indexed or not, I know they should not according to Google's guidelines. And they make a bunch of duplicated pages so I want to solve this problem. The thing is, if I noindex them, the site is gonna lose a non-negligible chunk of traffic : nearly 13% according to google analytics !!! I thought of blocking them in robots.txt. This solution would not keep them out of the index. But the pages appearing in GG SERPS would then look empty (no title, no description), thus their CTR would plummet and I would lose a bit of traffic too... The last idea I had was to use a rel=canonical tag pointing to the original search page (that is empty, without results), but it would probably have the same effect as noindexing them, wouldn't it ? (never tried so I'm not sure of this) Of course I did some research on the subject, but each of my finding recommanded one of the 3 methods only ! One even recommanded noindex+robots.txt block which is stupid because the noindex would then be useless... Is there somebody who can tell me which option is the best to keep this traffic ? Thanks a million
Technical SEO | | JohannCR0 -
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