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
-
Penalized for keyword?
Hi There! We have been building our website (https://systemfarmer.hu) for years, and had a great position for the keyword "office 365" in hungary. Now our site dropped in the middle of nowhere in natural search list. Is it possible that google penalized us? Tried to find out the reason without any luck. Thanks! Laszlo
Technical SEO | | laszlosf0 -
Ranking for combined version of keyword but not separated version
Hi All, My site is currently ranking on page 1 for the term "golfholidays" but is ranking at the bottom of page 3 for the term I am targeting and have optimised for, which is "golf holidays". Does anyone have any experience with the combined keyword ranking above the singular version? Nowhere on my page doesn't it mention the term "golfholidays" and backlinks to my site mostly use the anchor "golf holdiays" Thanks!
Technical SEO | | Andy94120 -
Robots.txt on http vs. https
We recently changed our domain from http to https. When a user enters any URL on http, there is an global 301 redirect to the same page on https. I cannot find instructions about what to do with robots.txt. Now that https is the canonical version, should I block the http-Version with robots.txt? Strangely, I cannot find a single ressource about this...
Technical SEO | | zeepartner0 -
Domain name SEO
I would like to hear your opinion about which between robotics.kawasaki.com and www.kawasakirobotics.com is more effective for SEO of keyword robotics and kawasaki. We have been using kawasaki.com domain name for more than 15 years.
Technical SEO | | Iwashima0 -
Direct link vs 302 redirect
So we have recently relaunched a site that we manage. As part of this we have changed the domain. The webdesign agency that built the new site have implemented a direct link from the old domain to the new domain. What is best practice a direct link or a 302 redirect? Thanks
Technical SEO | | cbarron0 -
Page Name vs Header
Hi! I was wondering if one of our knowledgeable community members can help me out: I use the drag & drop Intuit Website Builder. For each page, there is a field for the page "Name" and for the "Header". I understand the header is a standard element in a page. What exactly is the page "Name", how is different from the header and can/should I use the same text for both? Your input for a beginner like me is appreciated! I also have another question if you guys will indulge me: Intuit's support is terrible. You cannot get assistance over the phone, only through an annoying "chat" system. Wordpress has been recommended to me by multiple people. Are they really that good? how is their support?
Technical SEO | | Jorge1110 -
Keyword Targeting with Dynamic Pages
We have a large e-commerce website made with .net. so all of our category and item pages are made dynamic. Most things like title, some of the words and a few other things are done with scripts. I want to be able to target certain words and have more customized words on certain pages. Has anyone dealt with this? I know .net is pretty common so I can't be a unique case.
Technical SEO | | EcommerceSite0 -
HTACCESS redirect vs. forwarding
I'm having trouble using htaccess redirect to redirect a subdomain to a new domain on a different server. Tech support at godaddy suggested I forward the subdomain. The subdomain has already been cached by google. Will forwarding in this way have the same affect (SEO wise) as an htaccess redirect??
Technical SEO | | triple90