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
-
Moz-Specific 404 Errors Jumped with URLs that don't exist
Hello, I'm going to try and be as specific as possible concerning this weird issue, but I'd rather not say specific info about the site unless you think it's pertinent. So to summarize, we have a website that's owned by a company that is a division of another company. For reference, we'll say that: OURSITE.com is owned by COMPANY1 which is owned by AGENCY1 This morning, we got about 7,000 new errors in MOZ only (these errors are not in Search Console) for URLs with the company name or the agency name at the end of the url. So, let's say one post is: OURSITE.com/the-article/ This morning we have an error in MOZ for URLs OURSITE.com/the-article/COMPANY1 OURSITE.com/the-article/AGENCY1 x 7000+ articles we have created. Every single post ever created is now an error in MOZ because of these two URL additions that seem to come out of nowhere. These URLs are not in our Sitemaps, they are not in Google... They simply don't exist and yet MOZ created an an error with them. Unless they exist and I don't see them. Obviously there's a link to each company and agency site on the site in the about us section, but that's it.
Moz Pro | | CJolicoeur0 -
Pages with URL Too Long
Hello Mozzers! MOZ keeps kindly telling me the URLs are too long. However, this is largely due to the structure of E-commerce site, which has to include 'brand' 'range' and 'products' keyword. For example -
Moz Pro | | tigersohelll
https://www.choicefurnituresuperstore.co.uk/Devonshire-Rustic-Oak-Bedside-Cabinet-1-Drawer-p40668.html MOZ recommends no more than 75 characters. This means we have 25-30 characters for both the brand name and product name. Questions:
If it is an issue, how to fix it on my site?
If it's not an issue, how can we turn off this alert from MOZ?
Anyone know how big an issue URLs are as a ranking factor? I thought pretty low.0 -
I have double-checked the rel canonical is properly employed on our page but the On Page Grader says it's not working?
I have double-checked the rel canonical is properly employed on our page but the On Page Grader says it's not working Here is the URL - http://www.solidconcepts.com/industries/aerospace-parts-manufacturing/ What is wrong with how we are doing things?
Moz Pro | | StratasysDirectManufacturing0 -
Why is my domain authority lower than my competitors ?
I am totally confused with the information that I am getting from the Site explorer. My domain authority is 26, while my competitor's is 29. I am confused because every one of the factors that SEOmoz uses to determine our domain authority has higher rankings for my website. My SEOmoz rank is higher, my external followed links is higher, and so forth. The only factor that my competitor has with a greater ranking or number is that they have more internal links. I used the link metrics portion and added their URL to see all of this information. Can anyone tell me how this is possible ? My domain is www.Prickettproperties.com and one of the ones that I am looking at comparing is www.liquidlifevacationrentals.com
Moz Pro | | Prickett0 -
How can I get a report of the top 500 national sites using Domain Authority and Page Authority? Does someone have to type sites in one by one on Site Explorer or is there another way?
I want to know what sites and blogs have the to rankings overall based on their Domain Authority and Page Authority - Top 500 - 1000 in nation - I want to know which ones are follow and no-follow too - Does anyone know? Has anyone run such a report yet? Thanks for help - BD
Moz Pro | | creativeguy0 -
Blogger ain't working with research tools...
I'm trying to do link research and analysis on my website for dogtraining.blogspot.com however the tool recognizes only blogspot.com giving me fake results....
Moz Pro | | 6786486312640 -
SEOMoz Crawling Only 1 Page
I entered a new site into my dashboard 2 days ago - everything looked kosher, there were a few hundred pages crawled and a whole bunch of errors. I came back this morning to start work on the site and SEOMoz has crawled the site again, this time returning only 1 page and 0 errors. I haven't even logged in to the site since the first crawl, so I couldn't have broken anything. Has anyone seen this before?
Moz Pro | | Junction0 -
In page analysis
Hello, Seomoz did a crawl of my whole page, but under in page analysis grade rankings there have been no crawls? how can I initiate one?
Moz Pro | | AdamGymyGym0