locked
Specific url 301 redirection RRS feed

  • Question

  • User-1941391919 posted
    Hi everybody!
    My website run on iis 7.5.
    I have a list of very specific urls that i want to use 301 redirect to new corresponding urls.

    Exemple
    http://www.mysite.com/a/b/c 301 redirect to http://www.mysite.com/new_page.html
    http://www.mysite.com/elvis_exemple.html?idk=6kfa 301 redirect to http://www.mysite.com/alot_of_cat.htm
    ...


    The url are so specific that i do not want to use regexp rules for it.
    Can someone help?
    Thursday, June 28, 2012 3:24 PM

Answers

  • User-1731511703 posted

    I would recommend that you use a Rewrite Map with URL Rewrite.  I was starting to put the steps here but it was getting confusing.  I'm putting together a blog post with this information so I can easily include some screen shots.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 4:01 PM
  • User-1731511703 posted

    Here is the post that I put together to do the Rewrite Map.  I didn't cover every possible scenario but this should get you off to a good start.

    http://rick.barberfamilyonline.com/redirecting-specific-urls-using-rewrite-maps/

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 5:30 PM

All replies

  • User-218459230 posted

    Hi SimonBoris,

     Have you thought about using the HTTP Redirection Feature of IIS 7.5? http://www.iis.net/ConfigReference/system.webServer/httpRedirect

     

     

    Thursday, June 28, 2012 3:51 PM
  • User-1731511703 posted

    I would recommend that you use a Rewrite Map with URL Rewrite.  I was starting to put the steps here but it was getting confusing.  I'm putting together a blog post with this information so I can easily include some screen shots.

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 4:01 PM
  • User-1941391919 posted
    Hi jamiefurr, i did have a look at the page you linked before posting. The problem is that my old pages and folders do not exist anymore so using this method will not work. I forgot to specified that.
    Thursday, June 28, 2012 4:10 PM
  • User-1941391919 posted
    Hi Rick, im also looking at rewrite maps.
    I have tried some example on the web, but each time i edit the web.config the server stop displaying pages...
    I cant wait to see your blog post.
    Thursday, June 28, 2012 4:13 PM
  • User-218459230 posted

    Hi SimonBoris,

     In that case you could create some dummy pages to redirect from.  Otherwise Rick's method may work better for you.

     

    Thursday, June 28, 2012 4:16 PM
  • User-1731511703 posted

    Here is the post that I put together to do the Rewrite Map.  I didn't cover every possible scenario but this should get you off to a good start.

    http://rick.barberfamilyonline.com/redirecting-specific-urls-using-rewrite-maps/

    • Marked as answer by Anonymous Tuesday, September 28, 2021 12:00 AM
    Thursday, June 28, 2012 5:30 PM