The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

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

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Yes or No for Ampersand "&" in SEO URLs

    Yes or No for Ampersand "&" in SEO URLs

    Web Design
    6 4 16.9k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DROIDSTERS
      DROIDSTERS last edited by

      Hi Mozzers

      I would like to know how crawlers see the ampersand (& or &) in your URLs and if Google frown upon this or not? As far as I know they purely recognise this as "and" is this correct and is there any best practice for implementing this, as I know a lot of people complained before about & in links and that it is better to use it as &, but this is not on links, this is on URLs.

      Reason for this is that we looking to move onto an ASP.Net MVC framework (any suggestions for a different framework are welcome, we still just planning out future development) and in order to make use of the filter options we have on our site we need a parameter to indicate the difference on a routing level (routing sends to controller, controller sends to model, model sends to controller and controller sends to view < this is pattern of a request that comes in on the framework we will be using).

      I already have -'s and /'s in the URLs (which is for my SEO structuring) so these syntax can't be used for identifying filters the user clicks or uses to define their search as it will create a complete mess in the system. Now we looking at & to say; OK, when a user lands on /accommodation and they selects De Kelders (which is a destination in our area) the page will be /accommodation/de-kelders on this page they can define their search further to say they are looking for 5 star accommodation and it should be close to the beach, this is where the routing needs some guidance and we looking to have it as follow: /accommodation/de-kelders/5-star&close-to-the-beach. Now, does the "&" get identified by search engines on a URL level as "and" and does this cause any issues with crawling or indexation or would it be best to look at another solution?

      Thanks,

      Chris Captivate

      1 Reply Last reply Reply Quote 0
      • Morningside
        Morningside last edited by

        Ampersand is used as a delimiter for an entity in standard HTML, so inserting it could lead to a validation error and failure to load the page.  If you absolutely must use it in your URL, use the code: & which won't mess anything up.  It's just text, so there's no reason for Google to penalize it.  Under the concept of topic modeling, Google will recognize & as "and" but usually doesn't pay attention to connectors like that, so it's a non issue.

        1 Reply Last reply Reply Quote -1
        • ChrisDyson
          ChrisDyson last edited by

          Never...

          As James correctly pointed out the & (or ampersand) is not a good idea. However his explanation is a little incorrect.

          You see URLs can only be sent over the Internet using the ASCII character-set. URLs often contain characters outside the ASCII set, therefore the URL has to be converted into a valid ASCII format.

          When using unsafe ASCII characters you have to replace them with a "%" followed by two hexadecimal digits.

          Therefore an "&" is %26 and not & which is the standard HTML character set.

          Personally I would look at a way to exclude the & and just have /5-star-hotel-near-beach/ for example

          Morningside 1 Reply Last reply Reply Quote 1
          • webg
            webg last edited by

            The & character is also used in Google Analytics parameters. I believe that if there were any problems they wouldn't use. I use this character only to inform the start and finish parameters.

            A good example is the UTM parameters used by Google: http://www.domainname.com.br/?utm_source=yourdomain&utm_medium=algo&utm_campaign=yourcampaign&utm_content=something

            If you need to include special characters as the information is interesting escape the text before sending to the server.

            http://someserver.com/?param1=someinfo¶m2=another¶m3=some text using special characters such & % and more

            The url can be correctly corrected using the javascript escape() function to convert special characters like:

            var param3 = 'some text using special characters such & % and more';
            escape(param3);

            // will result some%20text%20using%20special%20characters%20such%20%26%20%25%20and%20more

            So your URL will be:

            http://someserver.com/?param1=someinfo¶m2=another¶m3=some text using special characters such %26 %25 and more

            ..And will be corrected.

            1 Reply Last reply Reply Quote -2
            • Morningside
              Morningside @ChrisDyson last edited by

              So basically what you're saying is that Web Design Group, which is a trusted resource on internet coding since 1999 is wrong.  Here's more detail about entities:

              http://www.htmlhelp.com/reference/html40/entities/

              The ampersand is the first character in an entity.  Entities are well respected and widely used, at least as long as I've been coding web pages (since about 1997).

              ChrisDyson 1 Reply Last reply Reply Quote 0
              • ChrisDyson
                ChrisDyson @Morningside last edited by

                Yes James you're referencing HTML that's incorrect

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • I'm doing a crawl analysis for a website and finding all these duplicate URLs with "null" being added to them and have no clue what could be causing this.
                  seanginnaw
                  seanginnaw
                  0
                  2
                  27

                • Does using role="heading" instead of H1 in HTML code affects SEO?
                  MoosaHemani
                  MoosaHemani
                  0
                  3
                  769

                • New more "helpful" internal linking causing SERP & traffic drop?
                  Squee
                  Squee
                  1
                  8
                  398

                • Adobe "Muse" on SEO?
                  AndieF
                  AndieF
                  0
                  2
                  1.8k

                • Does Google count the domain name in its 115-character "ideal" URL length?
                  MickEdwards
                  MickEdwards
                  1
                  3
                  2.8k

                • Keywords in the page url for best SEO
                  aalcocer2003
                  aalcocer2003
                  0
                  5
                  576

                • Would the mobile-redirect "Panda" shield "Old Possum" work in reverse?
                  0
                  1
                  588

                • Old SEO keyword "articles", are they hurting rankings?
                  Loganshark
                  Loganshark
                  0
                  6
                  1.1k

                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
                • Digital Marketers
                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 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy