Aren't domain.com/page and domain.com/page/ the same thing?
-
Hi All,
A recent Moz scan has turned up quite a few duplicate content notifications, all of which have the same issue. For instance: domain.com/page and domain.com/page/ are listed as duplicates, but I was under the impression that these pages would, in fact, be the same page.
Is this even something to bother fixing or a fluke scan? If I should fix it does anyone know of an .htaccess modification that might be used?
Thanks!
-
Wow, thanks guys! This is indeed an enterprise level site, so especially thanks to CleverPhD for the breakdown on trailing slash v. no trailing slash. Redirecting as we speak.
-
You bet Jesse - thank you. I do work at the enterprise level and so it would make sense that this would become a bigger issue on larger sites. I would still say it could become an issue on smaller sites as people do tend to add the slash at the end and so you end up with a duplicate issue.
Full disclosure, I run sites due to legacy issues do not end with the slash. They run just fine. The key is to be consistent.
P
-
Interesting Clever, thanks for posting that. To be honest your points all make perfect sense. I've just never had that situation come up. To Frank's point, organization with or without slash doesn't matter much for smaller sites but as you said I can see how using the slash could make your analytics tracking much easier.
Perhaps it depends on the size of the site, but either way I hadn't thought of it in that detailed-a-manner and am glad you posted it.
Thanks as always !
-
As others have already mentioned, it is typically considered a separate page. Whether you choose with the slash or without is your preference. If a site is small I will typically opt for with/without the slash, but if a site is large and there are many different pages and the structure gets quite large I default to using the slash.
Not sure if the site you are mentioning is Wordpress based or not, if so there there are plugins that can help with this issue as well.
-
They are different and you need to setup 301s to correct, also check all your menus etc to make sure that you use them consistently - this includes in emails etc - consistency is the key.
You can go with slashes or no slashes, as long as you are consistent, I have run sites both ways.
I will disagree with Jesse one thing - I would strongly recommend using the ending slash. I have several reasons why.
-
The url ending in a slash traditionally represents a folder with pages/documents/images inside that folder. Used to be that we would use a URL like /folder/index.htm with index.htm being the default page. It used to be that if you did not designate any file as an index file, assuming the permissions on the folder were set correctly, you would see all the content in that folder. Later, you could designate a default index file and so when you left it blank by ending in a slash it would show the content of the default page without needing the index.htm to be included. Now this issue can cause duplicate content problems (but that is another story).
-
Knowing all that above, many of your web analytic and other reporting software would create reports using a given folder Google Analytics is a good one. If you use the conent drilldown tool, it automatically organizes your reports by looking at the slashes and then grouping pageviews and visits according to the folder structure.
3) Separately, you had development code that used the folder system in the url as a way to parse what the user wants and then deliver a page. This is why you can now have a url like /article/file and you do not need a .htm or .php or .html at the end as the server knows what to do with it without seeing the final extensions.
What happens then is that you end up with URLs like this
/toys/age6-8
/toys/age6-8/redball
/toys/age6-8/blueball
/toys/age9-10
/toys/age9-10/remote-car
/toys/age9-10/remote-control-train
You can see this is a toy store and they are grouping toys by age. Balls are better for younger children vs remote vehicles for older children. In your GA reporting, if you assume that a slash indicates a new folder
/toys/age6-8 would not be included in the report with the products as it would be seen as a page within the /toys/ folder. Same thing with /toys/age9-10
You have your most important page not grouped with all the products it contains.
This is one of the reasons that I prefer ending with the slash. Can you do it the other way, sure, but it just adds more hassle. The folder ending in a slash is a convention that most people follow and frankly, you will find that users also tend to end in a slash when they put in a url. You end up with links to your site where they have a slash and one is needed.
Old habits are hard to break and so this is why I recommend going with the ending slash.
-
-
As for the htaccess fix, a simple 301 redirect from one to the other will do it. I recommend going with the no-slash format.
-
Technically they are different URLs.
http://googlewebmastercentral.blogspot.com/2010/04/to-slash-or-not-to-slash.html
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
-
Why does one page rank while a similar page doesn't?
We have a blog post (actually several of them that have the same SEO characteristics) that brings a fair amount of traffic to our site (relatively speaking), and according to Google Webmaster Tools it averages in the top 10 in SERPs for various terms. This page has no external links to it, and very few internal links pointing to it. When I run Moz's On-Page Grader for the various keywords it ranks for, the page get's an F on all of them. It was not optimized for any keyword, and it isn't our best content; it was a blog post written a few years ago and forgotten about and was never promoted in any way. The topic does happen to be about something that people search for frequently. According to the keyword difficulty tool, all of the keywords it ranks for have 40-45% difficulty. We have lots of other pages on our site that we have tried to optimize and that get A's and B's in On-Page Grader, that have both internal (from the home page and main menu) and external links pointing at them, etc, but they don't rank well at all. Keyword difficulty for these keywords is in the same range, from 37 - 53%. Why does this one page rank so well when the other pages don't? Additionally, we have been looking at a competitor who has a page that ranks #1 in universal results for numerous keywords according to SEMRush, yet the page gets an F On-page Grader for those keywords. The page has 3 links to it, all from the same domain and it has a very low domain and page authority. The Domain Authority of this page is 47 and the page authority is 33 according to Open Site Explorer (compared with our DA of 30, and PA of 1), and the social metrics are a bit higher than ours, but neither has a lot (they may have 15 likes to our 10). Why does this page rank so well for them? How can we get our Page Authority higher? Thanks for any and all help.
Moz Pro | | mukunig1 -
Domain name migration
I have purchased a new domain name (b), shorter and more cool than the one I'm actually using (a). Also I'm planning to use wordpress on (b), since my actual site was build entirely on html. So lets say making a migration so slowly. In the meantime I finish (b), I would like to include the name on my cards, and other promos, as well as actualize the new name in all my social profiles. I thinked on doing a 302 on (b) pointing to (a), till the day it will be finished. That day I'll do the opposite, so pointing (a), this time with a 301, to (b). Is this the best way of doing it, in terms os SEO? Thanks
Moz Pro | | antoniomitalia0 -
Right way to find quality free/non free directories to submit web page
I have one question about link building. What will be right way to find quality free/non free directories to submit my web page. My web page thematic is nail-art. Thanks and best regards
Moz Pro | | komir20040 -
In report section I don't see the last ranking : (
The image I see is like this http://pro.seomoz.org/campaigns/81837/rankings Nromally I was able to see the last report. Tanks for your help Fabio
Moz Pro | | Fabiosca630 -
How long will it take for Page Rank (or Page Authority) to flow via a 301 redirect?
I've recently redeveloped a static site using WordPress and have created 301 redirects for the original urls to the new urls. I know I won't get all the value passed via the 301, but I'm hoping some will. Any idea how long this may take? It's been nearly a month since the changeover so wondering if it would be weeks, months or more?
Moz Pro | | annomd0 -
7 Days into My Account and Only Crawled 3 Pages - What's Happened?
Am I doing something wrong? So far only 3 pages of my site have been crawled - but my account has been live for 7 days. Would it tell me if it was having trouble crawling the rest of the site?
Moz Pro | | columbus0 -
Company Name in Page Title creating thousands of "Duplicate Page Title" errors
I am new, and I just got back my crawl results (after a week or more). The first thing I noticed is that the "duplicate page title" is in the thousands, my urls and page titles are different. The only thing I can see is that our company name is at appended to the name of every title. I did search and found one other person with this problem, but no answer was given. Can anyone offer some advice? This doesn't seem right... Thanks,
Moz Pro | | AoyamaJPN0