Search engine friendly URLs
-
I'm going to create some new content for my site, I'm trying to decide on the best search engine friendly format. Namely, is it ok to use a subdirectory or should I keep all content on root level?
Is the SEO effect of either of these URLs superior to the other?
-
I like this analysis and recommendation.
The only other thing I would say (if it's a page) is drop the trailing slash on the recommended URL to this:
domain.com/cooking/lasagnaThat makes it clear it's a page as opposed to a directory, and it also looks cleaner to the human eye.
Here's some more complete discussion on the trailing slash topic:
http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html -
Hi Limens,
It is certainly fine to use a subdirectory, and can really make sense to help organize your content. It's also helpful in your analytics if you want to see who went to the blog area of your site versus the product area of your site.
It would help to know a little more about your site, but I would choose neither of the above. I'd actually go with something like domain.com/cooking/lasagna/. Note that I'm not including the .php. If you later switch to a different language, you won't have to redirect from php to asp or html, etc.
I wouldn't stuff your subfolder in your URL with keywords like the tasty-food in your example below. It just makes your URL longer and look a little more spammy to the human eye.
-
The second one is the best, because sort URLs are more relevant than long ones, but the best practices are http://www.seomoz.org/learn-seo/url
Use - instead of _ to separate keywords
-
this is what the length of URL would be in reality:
www.domaindom.com/cooking-tasty-food/lasagna_with_cheese.php
but if there is a good SEO reason, I could just put it on the root:
-
If your URLs are sort, the best way is to use domain.com/cooking/lasagna.php, this is the best way to optimize for lasagna and target secondary keywords cooking related.
Bye.
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
-
Url shows up in "Inurl' but not when using time parameters
Hey everybody, I have been testing the Inurl: feature of Google to try and gauge how long ago Google indexed our page. SO, this brings my question. If we run inurl:https://mysite.com all of our domains show up. If we run inurl:https://mysite.com/specialpage the domain shows up as being indexed If I use the "&as_qdr=y15" string to the URL, https://mysite.com/specialpage does not show up. Does anybody have any experience with this? Also on the same note when I look at how many pages Google has indexed it is about half of the pages we see on our backend/sitemap. Any thoughts would be appreciated. TY!
On-Page Optimization | | HashtagHustler1 -
Value of URL Changes
Hi Guys, I have a question. Each product listed on my webstie has product number like /product.php?id=3624. After I spent many hours with MOZ, I figured out that this approach is wrong and I should use the product name as URL to achieve better SEO performance. Now I am planing to change the URL generating algoritm but should I do it for existing products. Some of them have already been linked to external websites. I am thinking to create mirror URLs but this may cause rather damage on my website. Do you know what is the right answer? Best, Tony
On-Page Optimization | | Threeding.com0 -
What are the benefits of the URL meta tag?
We have too many meta tags and want to get rid of all the outdated ones. However, we don't want to eliminate valuable meta tags by mistake. So, before we say goodbye to the URL meta tag, we want to make sure we understand the pros and cons, if any. By the way, we are not referring to canonical URL tags, just URL as in:
On-Page Optimization | | GRIP-SEO0 -
Changing the url of a page
Hello. I would like to change the url of a page. It currently has very few inbound links. I would set up a 301 redirect to the new url. Is there anything else I should take into account before changing the url? Is there a downside to changing a url? Do inbound links carry the same value when a 301 redirect is involved? Thank you!
On-Page Optimization | | nyc-seo0 -
How do I PERMANENTLY change an incorrect URL link with one of my keywords?
Hello, I received an “F” grade on my on-page report for one of my keywords. I noticed that the URL linked with that keyword was wrong. After changing it to the correct URL, I received an “A.” However, the change was not permanent. How do I permanently change the URL? I don’t see any “Save Changes” or “Apply Changes” button anywhere. Thank you!
On-Page Optimization | | jampaper0 -
Adding keywords to URL's
I understand the importance of having the keyword in the URL (at least now I do). When I created my site (www.enchantingquotes.com), I was completely ignorant about SEO. So....question is...how do I go about adding keywords to already done pages? Do I create a new section and then redirect - or do I have to basically recreate pages? Thx much 🙂
On-Page Optimization | | enchantedgirlz0 -
If a site has https versions of every page, will the search engines view them as duplicate pages?
A client's site has HTTPS versions of every page for their site and it is possible to view both http and https versions of the page. Do the search engines view this as duplicate content?
On-Page Optimization | | harryholmes0070 -
What's the Best Way to Hide Redirects from Search Engines?
Hey everybody, I like to use php redirects for affiliate links so they look better. I keep them all in the same directory. I read recently that these may hurt SEO. A couple quick questions: Is this the best way to redirect affiliate links? Should I simply block the directory in robots.txt? Any other suggestions from you SEO guyses and galz? Thanks! Jared
On-Page Optimization | | JaredB0