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. Intermediate & Advanced SEO
    4. 301 Redirection and apostrophes in URLs

    301 Redirection and apostrophes in URLs

    Intermediate & Advanced SEO
    3 2 2.0k
    • 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.
    • Seamoose
      Seamoose last edited by

      Hi

      I am experiencing trouble getting any redirects with apostrophes in the URLs to 301 redirect in order to eliminate 404 errors.

      I have tried replacing the instance of the apostrophe in the source URL field to %27 and variations of this but to no avail.

      The site is a wordpress site (the old URLS are legacies from the old Business Catalyst site) and I am using the redirection plug in. I have gone into some detail with a helpful soul here http://wordpress.org/support/topic/how-to-deal-with-apostrophes-in-source-url but unfortunately to no result.

      If anyone has any idea how to solve this puzzle I would be grateful for the help.

      Example: http://www.tesselaars.com/_blog/Inside_Flowers/post/Online_Marketing_for_Florists_Part_1_–_A_Website_You_Won't_Regret/

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

        The version with URL entities you posted is almost right, Seamus, but there's a a weird combination of entities around the "hyphen surrounded by two underscores". For some reason, this is showing as %E2%80%93 when it should just be a - (There's no need to encode a hyphen as it's a standard URL character)

        Try this as the source URL, with the redirect set as NOT a regular expression:

        /blog/Inside_Flowers/post/Online_Marketing_for_Florists_Part_1-_A_Website_You_Won%27t_Regret/

        I've tested that and it's working on my test install. If it doesn't work for you, there may be an encoding issue on your Windows server that's different from what I see on Linux/Apache.

        Lemme know if that works?

        Paul

        P.S. Here's the Source URL for the second example used in the WordPress Forum post:

        /_blog/Inside_Flowers/post/Valentine%27s_Day_Statistics_2013/

        1 Reply Last reply Reply Quote 1
        • Seamoose
          Seamoose last edited by

          Hey Paul, and thanks for the reply.

          This certainly feels like it is helping me close in on the mystery (more likely my knowledge gap!) however, I am getting some odd results. I think maybe I need to wade through all my attempts at 301-ing these troublesome old URLs and see if I have done something weird which might to be blame but anyway, for the record, here is the new mystery:

          When I pop in the following:

          http://www.tesselaars.com/_blog/Inside_Flowers/post/Online_Marketing_for_Florists_Part_1_-_A_Website_You_Won't_Regret/

          I get redirected to

          http://www.tesselaars.com/valentines-day-statistics-2013/

          I can only figure I must have entered a 301 of this nature, which seems odd as it's a different post, but hey, after five million 301s it is possible!

          I will check that out and see if I can get a clean and clear result and report back. Thanks for your help 🙂

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • URL Too Long vs. 301 Redirect
            Corbec888
            Corbec888
            0
            4
            54

          • Google ranking 301 redirected vanity urls
            Linda-Vassily
            Linda-Vassily
            0
            4
            163

          • Is 1:1 301 redirect required on indexed URL when restructing URL even if the new URL is canonicalized?
            EricaMcGillivray
            EricaMcGillivray
            0
            2
            138

          • For URLs that require login, should our redirect be 301 or 302?
            kayintveen_MD
            kayintveen_MD
            0
            4
            1.8k

          • How do you 301 redirect URLs with a hashbang (#!) format? We just lost a ton of pagerank because we thought javascript redirect was the only way! But other sites have been able to do this – examples and details inside
            JamesTDG
            JamesTDG
            0
            9
            7.9k

          • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
            PatriotOutfitters81
            PatriotOutfitters81
            0
            3
            66

          • How to conduct catch 301 redirects & have the separate 301 redirects for the key pages
            BenRWoodard
            BenRWoodard
            0
            2
            288

          • How to 301 redirect ASP.net URLS
            KJ-Rodgers
            KJ-Rodgers
            0
            2
            824

          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