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
-
Links don't show in MOZ
Hi, Im have started some weeks ago with some standard linkbuilding from websites to my domain www.eppinga.nl . These links don't show in Moz. Does this take some time? How long does it take? Thanks in advance for all replies! Tymen
Moz Pro | | Tymen0 -
Moz has a problem connecting to my GA account. But it hasn't changed..?
A client recently rebuilt there site. Same URL, same Google Analytics code. When I log into my SEOmoz campaign for this site, I get this message: It appears there's a problem with our connection to your Google Analytics account. Please go to your Settings page to update your connection. There is nothing to update however. Nothing should have changed in my settings. Do I need to start over here? Any help is appreciated (I know analytics is working, checked it this morning.....)
Moz Pro | | cschwartzel0 -
1 page crawled ... and other errors
1. Why is only one (1) page crawled every second time you crawl my site? 2. Why do your bot not obey the rules specified in the robots.txt? 3. Why does your site constantly loose connection to my facebook account/page? This means that when ever i want to compare performance i need to re-authorize, and therefor can not see any data until next time. Next time i also need to re-authorize ... 4. Why cant i add a competitor twitter account? What ever i type i get an "uh oh account cannot be tracked" - and if i randomly succeed, the account added never shows up with any data. It has been like this for ages. If have reported these issues over and over again. We are part of a large scandinavian company represented by Denmark, Sweden, Norway and Finland. The companies are also part of a larger worldwide company spreading across England, Ireland, Continental Europe and Northern Europe. I count at least 10 accounts on Seomoz.org We, the Northern Europe (4 accounts) are now reconsidering our membership at seomoz.org. We have recently expanded our efforts and established a SEO-community in the larger scale businees spanning all our countries. Also in this community we are now discussing the quality of your services. We'll be meeting next time at 27-28th of june in London. I hope i can bring some answers that clarify the problem we have seen here on seomoz.org. As i have written before: I love your setup and you tools - when they work. Regretebly, that is only occasionally the case!
Moz Pro | | alsvik1 -
Why can't I get the search volume data from Google in the Keyword difficulty tool?
Hi, For some reason I can't get the traffic data from Google. when I'm doing a keyword research via the Difficult tool then i need to check the keywords volume in Google Adwords and copy the words into MOZ's keyword tool to check feasibility. mZGRSbC.png?1
Moz Pro | | Indiatravelz0 -
SeoMoz reporting 301 redirects I can't find
So I'm trying to find a bunch of redirects that SeoMoz is reporting that were created by Wordpress but I can't seem to find. I'm finding a bunch of redirects FROM pages like this: www.mysite.com/wp-content/themes/mimbo/page-name.com redirecting to www.mysite.com/page-name.com Anybody have any idea how I can track down the offending page that has a link to that url. I took a look at my templates and content with the pages and can't seem to find anything that would create it.
Moz Pro | | brandco0 -
Twitter Page Authority Score?
I've been doing some competitive research in Open Site Explorer and many of our competitors have Twitter accounts very similar to ours. Their Twitter pages are usually one of the pages with linking to their website with the most Page Authority. The incoming links from Twitter are a "no follow" as you would guess. This has been the case for a large number of well ranking sites I have looked at. www.dremed.com also has a Twitter account at: https://twitter.com/#!/DREmed . However, Open Site Explorer does not list the Twitter link as an incoming link at all ( or if it does it has no Page Authority ). The Twitter account page seems very similar in nature to other competing Twitter pages. I'm not sure why it does not ALSO pull a high Page Authority score??? Do you know why this might be? Best, Justin
Moz Pro | | justinjeffries0 -
On-Page Keyword Optimization Question
First let me say I want to improve the text of the site I am working on focusing on the site visitor in the first instance. I run the "On-Page Keyword Optimization" The page fails on "Avoid Keyword Stuffing in Document... ...Occurrences of Keyword 48" well over the limit of 15. The occurrence include those in the site navigation and strapline, but it was my understanding that Google was aware of nav areas/areas common to most other pages on the site and that keywords in these areas weren't viewed as being part of the page content. The keyword is the main keyword for the company, and the page is the home page i.e. "acme widgets" the others are "acme widgets for the home"... well you get the idea: The page breaks down as follows: 5 instances in primary nav 1 instance strapline 3 instances secondary nav Remainder in page body I am told by the tool to reduce to 15 instances, so should I? Have 9 instances in the nav and other areas and 6 or so on the page Have 9 instances in the nav and other areas and 15 or so on the page
Moz Pro | | GrouchyKids0 -
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