undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • SEO Q&A

      Insights & discussions from an SEO community of 500,000+.

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. Magento Trailing Slash URL Problem

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

Magento Trailing Slash URL Problem

Intermediate & Advanced SEO
3
8
9.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • MozAddict
    MozAddict last edited by May 9, 2014, 12:00 PM

    Howdy Mozzers!

    Our magento store URL's are accessible with or without a trailing slash at the end. Canonical's and 301 redirects are not set up for one of them at the moment.

    Will this cause duplicate issue? Do we need to set canonical or 301 up? Which one is recommended?

    MozAddict

    1 Reply Last reply Reply Quote 0
    • MozAddict
      MozAddict @mosquitohawk last edited by May 9, 2014, 3:53 PM May 9, 2014, 3:53 PM

      Ok, so we could canonical the first page in the pagination, that way any links to the pagination would flow juicy juice to the first page. That would make sense, since it would strengthen its ranking as a landing page as well.

      I think ill implement the canonical and get rid of the content on pagination anyways, just avoid the problem completely.

      Ace Marty!

      1 Reply Last reply Reply Quote 0
      • mosquitohawk
        mosquitohawk @MozAddict last edited by May 9, 2014, 3:38 PM May 9, 2014, 3:38 PM

        If you are using rel canonical then you can have the same on each page and it should be okay.

        Otherwise, I would make sure your paginated pages don't have it.  The next/prev helps Google to understand these are subsequent pages of the original category but it doesn't really give instruction as to the preferred page, etc. (like the canonical would) so you could end up with Google ignoring the content after it sees it too many times.

        MozAddict 1 Reply Last reply May 9, 2014, 3:53 PM Reply Quote 1
        • MozAddict
          MozAddict @mosquitohawk last edited by May 9, 2014, 3:01 PM May 9, 2014, 3:01 PM

          Appreciate your response Marty.

          What is your opinion on content for category pages. Currently we have the same content displaying on paginated pages for the same category (?p=1, ?p=2, etc)

          Should we display content just on the first page and remove it for rest of the pagination or is this ok?

          We are using rel="next/prev" but not sure if this is treated as duplication?

          mosquitohawk 1 Reply Last reply May 9, 2014, 3:38 PM Reply Quote 0
          • mosquitohawk
            mosquitohawk @MozAddict last edited by May 9, 2014, 1:31 PM May 9, 2014, 1:31 PM

            I personally prefer the slash but it doesn't make any difference as long as you're consistent and if as you say Google is already indexing most without, I'd probably go that way too!

            MozAddict 1 Reply Last reply May 9, 2014, 3:01 PM Reply Quote 1
            • MozAddict
              MozAddict last edited by May 9, 2014, 1:15 PM May 9, 2014, 1:15 PM

              Great answers guys! I would personally also prefer 301's over canonicals. So the next questions is, to keep URLs with the trailing slash or without the trailing slash. I tend to lean towards without, since most URL's are indexed that way already, its easier on the eyes, and people tend to link that way.

              Any preference?

              mosquitohawk 1 Reply Last reply May 9, 2014, 1:31 PM Reply Quote 0
              • mosquitohawk
                mosquitohawk last edited by May 10, 2014, 2:26 PM May 9, 2014, 12:25 PM

                Good day MozAddict!

                SEO for Magento is near and dear to my heart.  From a technical SEO perspective, I would recommend cleaning up the items you mentioned as it can cause issues.  The biggest concern is trust flow and having trust split between two versions of the page (ie: the slash and no-slash).

                So both the 301 and canonical tag will pass the same amount of trust as the other.  So your question is, which do you go with?  I think both are fine however I prefer the 301 myself for dealing with the trailing slash issue and here's why.

                As time passes, believe it or not, people will link to some of your pages naturally.  Because a canonical or 301 doesn't pass the full trust earned from the link, I'd rather someone link to the correct version.  If I'm using the canonical tag, they may indeed link to the non-preferred version and I would lose some of that trust, whereas if I am using the 301, they will automatically be shown the correct, preferred version and I earn all the trust from that natural link.

                Moz has a great article on canonicalization if you want to read more on it.

                Hope this answer is useful to you!

                1 Reply Last reply Reply Quote 0
                • TheeDigital
                  TheeDigital last edited by May 10, 2014, 2:26 PM May 9, 2014, 12:20 PM

                  Definitely a duplication issue as they are 2 different pages.  Pick one way and stick to it, probably remove is the easiest.  I would do redirects first, but set canonical as well as a best practice.  There is a great guide here:

                  http://www.kodecreations.co.uk/google/remove-trailing-slash-magento-urls-duplicate-content-issue/

                  It even includes instructions on how to stop Magento from generating urls with trailing slashes.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  1 out of 8
                  • First post
                    1/8
                    Last post

                  Got a burning SEO question?

                  Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                  Start my free trial


                  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.

                  • See all categories

                  Related Questions

                  • djlittman

                    If I own a .com url and also have the same url with .net, .info, .org, will I want to point them to the .com IP address?

                    I have a domain, for example, mydomain.com and I purchased mydomain.net, mydomain.info, and mydomain.org.  Should I point the host @ to the IP where the .com is hosted in wpengine? I am not doing anything with the .org, .info, .net domains.  I simply purchased them to prevent competitors from buying the domains.

                    Intermediate & Advanced SEO | Dec 19, 2013, 4:19 PM | djlittman
                    0
                  • kisen

                    Urls missing from product_cat sitemap

                    I'm using Yoast SEO plugin to generate XML sitemaps on my e-commerce site (woocommerce). I recently changed the category structure and now only 25 of about 75 product categories are included. Is there a way to manually include urls or what is the best way to have them all indexed in the sitemap?

                    Intermediate & Advanced SEO | Jul 22, 2013, 1:11 PM | kisen
                    0
                  • Travis-W

                    Ending URLs in .html versus /

                    Hi there! Currently all the URLs on my website, even the home page, end it .html, such as http://www,consumerbase.com/index.html Is this bad?
                    Is there any benefit to this? Should I remove it and just have them end with a forward slash?
                    If I 301 redirect the old .html URLs to the forward slash URLs, will I lose PA? Thanks!

                    Intermediate & Advanced SEO | Jun 21, 2013, 5:24 PM | Travis-W
                    0
                  • JohnPeters

                    Crazy long weird URLs... help

                    I have a HTML website, mysite1.com, and I placed a link on the home page to another one of my sites, mysite2.com Today I checked the links to mysite2.com in Majestic and noticed 24 links coming from the mysite1.com instead of just one link. The URLs from mysite1.com that are showing in Majestic are like this mysite1.com/?epl=4donafvFK3fMXxZXMWQRQLodmPchoXCK5C7-kbBv_agkwlkJrZAoaSDVUlhqFmUqt0f8c2Q6jF6GO6DNMnbidqRsikriF-IEBEt5okmICLEB0FxP36GrsxoPGQ3SGBo1PVR7itDUA4CYmjypn5gi mysite1.com,was inherited from a friend and I believe that it was originally built in Frontpage. Can you tell me how I can get rid of these multiple links as I only want 1 showing from the home page Thanks in advance

                    Intermediate & Advanced SEO | Oct 23, 2012, 7:07 AM | JohnPeters
                    0
                  • debc

                    Infinite Redirect Loop without trailing slash, please help

                    I've been searching for an answer all day, I can't seem to figure this out. When I Fetch my blog as Google(http://www.mysite.com/blog) WITHOUT a trailing slash at the end, I get this error: The page seems to redirect to itself. This may result in an infinite redirect loop **HTTP/1.1 301 Moved Permanently** When I Fetch my blog as Google WITH the trailing slash at the end(http://www.mysite.com/blog/), it is fine without errors. When I pull it up in a browser comes up fine both with and without the trailing slash. My .htaccess file in the root directory contains this: RewriteEngine On
                    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index.htm\ HTTP/
                    RewriteRule ^index.htm$ http://www.mysite.com/ [R=301,L]
                    RewriteCond %{HTTP_HOST} ^mysite.com$
                    RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L] My .htaccess file in the blog directory contains this: BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
                     RewriteBase /blog/
                     RewriteCond %{REQUEST_URI} ^./index.php/. [NC]
                     RewriteRule ^index.php/(.*)$ http://www.mysite.com/blog/$1 [R=301,L]
                    RewriteCond %{REQUEST_FILENAME} !-f
                    RewriteCond %{REQUEST_FILENAME} !-d
                    RewriteRule . /blog/index.php [L]</ifmodule> END WordPress Do I have something incorrectly coded in these .htaccess files that could be causing this? Or is there something else I should look at? Thank you for any help!!

                    Intermediate & Advanced SEO | Sep 25, 2012, 9:25 PM | debc
                    0
                  • seoppc2012

                    Does Google index url with hashtags?

                    We are setting up some Jquery tabs in a page that will produce the same url with hashtags. For example: index.php#aboutus, index.php#ourguarantee, etc. We don't want that content to be crawled as we'd like to prevent duplicate content. Does Google normally crawl such urls or does it just ignore them? Thanks in advance.

                    Intermediate & Advanced SEO | Oct 16, 2013, 4:56 PM | seoppc2012
                    0
                  • CommercePundit

                    How to fix issues regarding URL parameters?

                    Today, I was reading help article for URL parameters by Google. http://www.google.com/support/webmasters/bin/answer.py?answer=1235687 I come to know that, Google is giving value to URLs which ave parameters that change or determine the content of a page. There are too many pages in my website with similar value for Name, Price and Number of product. But, I have restricted all pages by Robots.txt with following syntax. URLs:
                    http://www.vistastores.com/table-lamps?dir=asc&order=name
                    http://www.vistastores.com/table-lamps?dir=asc&order=price
                    http://www.vistastores.com/table-lamps?limit=100 Syntax in Robots.txt
                    Disallow: /?dir=
                    Disallow: /?p=
                    Disallow: /*?limit= Now, I am confuse. Which is best solution to get maximum benefits in SEO?

                    Intermediate & Advanced SEO | Nov 16, 2011, 12:12 PM | CommercePundit
                    0
                  • kylesuss

                    Should I Use City Name in URL?

                    Having a website designed for a car dealership and deciding what attributes to use in the URL. Should I include the city name in the URL? Or does that help for SEO purposes? Other ideas of what to research or try are appreciated too. Thanks 🙂

                    Intermediate & Advanced SEO | Jun 9, 2011, 12:48 PM | kylesuss
                    0

                  Get started with Moz Pro!

                  Unlock the power of advanced SEO tools and data-driven insights.

                  Start my free trial
                  Products
                  • Moz Pro
                  • Moz Local
                  • Moz API
                  • Moz Data
                  • STAT
                  • Product Updates
                  Moz Solutions
                  • SMB Solutions
                  • Agency Solutions
                  • Enterprise Solutions
                  Free SEO Tools
                  • Domain Authority Checker
                  • Link Explorer
                  • Keyword Explorer
                  • Competitive Research
                  • Brand Authority Checker
                  • Local Citation Checker
                  • MozBar Extension
                  • MozCast
                  Resources
                  • Blog
                  • SEO Learning Center
                  • Help Hub
                  • Beginner's Guide to SEO
                  • How-to Guides
                  • Moz Academy
                  • API Docs
                  About Moz
                  • About
                  • Team
                  • Careers
                  • Contact
                  Why Moz
                  • Case Studies
                  • Testimonials
                  Get Involved
                  • Become an Affiliate
                  • MozCon
                  • Webinars
                  • Practical Marketer Series
                  • MozPod
                  Connect with us

                  Contact the Help team

                  Join our newsletter
                  Moz logo
                  © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                  • Accessibility
                  • Terms of Use
                  • Privacy

                  Looks like your connection to Moz was lost, please wait while we try to reconnect.