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. Problems with 301 redirects with urls containing strange, uncommon characters on IIS

    Problems with 301 redirects with urls containing strange, uncommon characters on IIS

    Technical SEO Issues
    6 2 2.8k
    • 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.
    • outofboundsdigital
      outofboundsdigital last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • sprynewmedia
        sprynewmedia last edited by

        What version of IIS?

        Did you installl URL Rewrite 2? http://www.iis.net/download/URLRewrite

        outofboundsdigital 1 Reply Last reply Reply Quote 0
        • outofboundsdigital
          outofboundsdigital @sprynewmedia last edited by

          iis 6.0

          the developer provided this as their solution, any ideas?

          Here’s a basic overview:Using the Ionics Isapi Rewrite Filter available here:http://iirf.codeplex.com/The code should already be installed on the server, but needs to be set up for each site that is using it.In IIS right-click and select Properties and select the ISAPI Filters tab. Click the Add… button. Click the Browse… button and select the .dll (Default location is C:\Program Files\Ionic Shade\IIRF 2.1\IIRF.dll.) Enter a filter name (“ISAPI Filter” is fine) and click OK.Add an IIRF.ini file to the root of the website. The text file will contain something similar to this:§  remove index pages from URLs RedirectRule (.)/default.htm$ $1/ [I,R=301] RedirectRule (.)/default.aspx$ $1/ [I,R=301] RedirectRule (.)/index.aspx$ $1/ [I,R=301] RedirectRule (.)/index.htm$ $1/ [I,R=301] RedirectRule (.)/index.html$ $1/ [I,R=301] RedirectRule (.)/[Old URL]$ $1/[New URL] [I,R=301]§  force proper www. prefix on all requests RewriteCond %{HTTP_HOST} domain.com [I] RewriteRule /(.*) http://www.domain.com/$1 [R=301]§  RewriteLog c:\temp\iirfThe first block ensures that the default page will never have a page name at the end. It will just use the root or folder name ending with a slash. It also can be used to write Old URL to new URL.The second block forces www. to be added to the domain if it does not exist in the url.If you remove the ”#” from the beginning of the last line the filter will write out debug information to the provided location.And that in essence is how we set it up.

          sprynewmedia outofboundsdigital 3 Replies Last reply Reply Quote 0
          • sprynewmedia
            sprynewmedia @outofboundsdigital last edited by

            Sorry, most of my experience is on IIS7 (for numerous reasons including many performance enhancements. As a sidebar, I'd recommend upgrading before developing and launching a new site on old tech) and with URL Rewrite which has a robust RegEx engine.  I did work with Helicon ISAPI Rewrite a long time ago but my memory is vague.

            Also, I'd need to know what a clean URL is supposed to look like (hopefully without spaces as those cause all sorts of problems).  The samples all fail so I don't know how to fix.

            1 Reply Last reply Reply Quote 1
            • outofboundsdigital
              outofboundsdigital @outofboundsdigital last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • sprynewmedia
                sprynewmedia @outofboundsdigital last edited by

                You are right, these are &%*#(&d.  I don't see any usable pattern given the new URLs must use IDs from the new system (first example).  The second also needs new information (category) which no Regex will ever do.

                In that case you have a few options:

                1. Create a search function on the 404 page that will take the relevant part of the URL and perform a search on the new catalogue.  This won't be perfect but at least the visitors will get useful information to act on.
                2. If only a few 100 are important, write a individual rule for each page.  This can be done in a XSL file to speed up the process but it is a lot of work. After the top pages are finished, redirect the rest to catalogue home.
                3. Seriously consider upgrading to URL Rewrite 2 which can perform redirects against a databases of URLs.  This is more tedious and expensive but it allows you to add thousands of URL pairs – far more than any txt file should ever hold for performance reasons.  You can even write your own logic in the provider to do some of the search functions.  Then it behaves like #1 but redirect immediately to the best match.

                Good luck!

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

                • 301 Redirects, Sitemaps and Indexing - How to hide redirected urls from search engines?
                  LoganRay
                  LoganRay
                  0
                  4
                  3.0k

                • HTacess 301 redirect with special characters
                  abhigarapati
                  abhigarapati
                  0
                  2
                  132

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

                • 301 redirects and Dynamic URLs
                  Barrycliff68
                  Barrycliff68
                  0
                  3
                  1.1k

                • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
                  Room214
                  Room214
                  0
                  7
                  1.1k

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

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

                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