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. Technical SEO Issues
    4. 301 Redirecting weird URLs with % in them

    301 Redirecting weird URLs with % in them

    Technical SEO Issues
    4 2 989
    • 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.
    • TheDude
      TheDude last edited by

      I've been working on redirecting links reported as 404 in Google webmaster tools.

      I've stumbled upon 41 URLs that Google is reporting as 404 that include a '%' in the URL, but I don't know how to redirect.  Here is an example:

      URL:

      bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ

      Attempted redirect:

      redirect 301 /bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ http://www.mysite.com/

      Unfortunately, after implementing the redirect, http://www.mysite.com/bond_information.htm%20Surety%20Bond%20Information,%20with%20FAQ still resolves a 404 error.

      Anyone successfully fix these errors using Apache .htaccess?

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

        Hi -

        Those are spaces -

        Which in htacess would just be a space - but encapsulate the URL with spaces with "  "

        Such as

        redirect 301 "/bond_information.htm Surety Bond Information, with FAQ" http://www.mysite.com/

        Also i know formatting here is awful, but you need a space between old and new URI's

        PS. it is not just the %  ---  %20 equals a space in HTTP resolves

        TheDude 1 Reply Last reply Reply Quote 0
        • TheDude
          TheDude @Jinx14678 last edited by

          Thanks.  I was hopeful, but no such luck.  I believe I implemented what you meant....let me know if the redirects below are what you meant or if I screwed it up.

          redirect 301 "/blog/how-to-get-licensed-widgeted/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
          redirect 301 "/blog/surety-widget-improvements-act-of-2006 22" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
          redirect 301 "/blog/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/alabama-air-conditiner-contract 3C/ul 3E 20 3C/div 3E 20 3Cdiv 20class=" http://www.mysite.com/blog/
          redirect 301 "/blog/getting-your-new-business-widgeted/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/blog/page/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/blog/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/info 5C/videos 5C/l1-what-are-surety-widgets.htm" http://www.mysite.com/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/contractor_license_widget.htm" http://www.mysite.com/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/commercial-widgets 5C/auto_dealer_widget.htm" http://www.mysite.com/
          redirect 301 "/blog/what-widgeting-companies-look-for-in-a-contractor/ 5C/ 5C/www.mysite.com 5C/surety-widgets 5C/contract-widgets 5C/applications 5C/apply_contract.htm" http://www.mysite.com/blog/
          redirect 301 "/ 5C/ 5C/www.mysite.com 5C/estimate.php" http://www.mysite.com/
          redirect 301 "/blog/what-widgeting-companies-look-for-in-a-contractor/ 5C/ 5C/www.mysite.com 5C/blog 5C/how-to-increase-your-contract-surety-widget-line" http://www.mysite.com/blog/
          redirect 301 "/surety-widgets/surety_widget.php 3Fwidget_form_id 3D1168 26widget_type_id 3D35" http://www.mysite.com/
          redirect 301 "/surety-widgets/surety_widget.php 3Fwidget_form_id 3D12 26widget_type_id 3D105" http://www.mysite.com/
          redirect 301 "/surety-widgets/ E2 80 8Bsurety_widget.php?id=346" http://www.mysite.com/
          redirect 301 "/surety-widgets/ E2 80 8Bsurety_widget.php?id=304" http://www.mysite.com/
          redirect 301 "/ 20Sponsored" http://www.mysite.com/
          redirect 301 "/info/tool_surety_company.php 3Fid 3D106" http://www.mysite.com/
          redirect 301 "/blog/performance-widgets-how-times-change/ 20Performance 20widgets 20- 20How 20times 20change" http://www.mysite.com/
          redirect 301 "/surety-widgets/contract-widgets/construction_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
          redirect 301 "/surety-widgets/licensed-states/maryland_surety_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
          redirect 301 "/surety-widgets/contract-widgets/performance_widget.htm 20?iframe=true&width=100 &height=100 " http://www.mysite.com/
          redirect 301 "/widget_information.htm 20Surety 20widget 20Information, 20with 20FAQ" http://www.mysite.com/info/
          redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=pQwtT_rOPKbi2AW3oOCQDw&ved=0CC4QmAEwBA&usg=AFQjCNE-HBRRWwzjaNERMro6sEcFdmdd7Q" http://www.mysite.com/blog/
          redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=lhUpT-6aEez4sQL29sHVAg&ved=0CC0QmAEwBA&usg=AFQjCNGLStPFLxiEzY35YzA6NFvM7aeQLQ" http://www.mysite.com/blog/
          redirect 301 "/blog/congress-pushes-more-regulation-on-personal-sureties&sa=U&ei=jsAnT6LPD634sQK3panRAg&ved=0CC0QmAEwBA&usg=AFQjCNE0uBycDO_lWcgkRaC4iD_a5FLGkA" http://www.mysite.com/blog/

          Jinx14678 1 Reply Last reply Reply Quote 0
          • Jinx14678
            Jinx14678 @TheDude last edited by

            Hi,

            I think the issue lies in the original redirect

            If you notice the 404 URLS all have the ending extension, then additional items, there would probably be no space here, as this was probably from a previous domain level 301

            Also for ones like

            redirect 301 "/ 20Sponsored" http://www.mysite.com/   quotations are not necessary, as there appears to be no space.

            It is really hard for me to give you specifics - can you PM me a specific URL string that is 404'ing then I will send you the correct 301 expression and we can check that way?

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 301 redirects for all urls - legal dispute
              Hurf
              Hurf
              0
              2
              64

            • Redirect URLS with 301 twice
              KeriMorgret
              KeriMorgret
              0
              5
              1.5k

            • Redirect a 301 Redirect
              RedCaffeine
              RedCaffeine
              0
              5
              98

            • I have altered a url as it was too long. Do I need to do a 301 redirect for the old url?
              TomRayner
              TomRayner
              0
              4
              181

            • Drupal URL Aliases vs 301 Redirects + Do URL Aliases create duplicates?
              YannickVeys
              YannickVeys
              0
              4
              2.5k

            • Not sure which URL to use for 301 redirect
              CeCeBar
              CeCeBar
              0
              7
              435

            • Trailing Slashes In Url use Canonical Url or 301 Redirect?
              RyanKent
              RyanKent
              0
              7
              2.7k

            • Difference between URL Rewrites and 301 Redirects for Rankings
              Gaveltek-173238
              Gaveltek-173238
              0
              4
              570

            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