Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Saied 349 posts 674 karma points
    Jun 17, 2016 @ 12:00
    Saied
    0

    How to write a Url Rewrite rule?

    I want to redirect the user from \user to \user\account in UrlRewriting.config, but I am not sure how to write the rule.

    I have two websites with the same path, just a different domain, so I need to cover both.

    Thanks, Saied

  • Manish 373 posts 932 karma points
    Jun 17, 2016 @ 12:22
  • Cimplex 113 posts 576 karma points
    Jun 17, 2016 @ 12:46
    Cimplex
    100

    This package may be useful: https://our.umbraco.org/projects/developer-tools/301-url-tracker/

    Might be to much just for a single url but it is really easy to use.

    // Herman

  • Saied 349 posts 674 karma points
    Jun 17, 2016 @ 13:46
    Saied
    0

    Hi

    I actually installed this package and it is really great and easy to use, but I am having issues with it. I have two websites under one umbraco instance:

    http://stage.sctflash.com and http://stage.bullydog.com

    If the user goes to http://stage.sctflash.com/user, I want to redirect them to http://stage.sctflash.com/user/account which should then redirect them to a login page. This works.

    If the user goes to http://stage.bullydog.com/user, I want to redirect them to http://stage.bullydog.com/user/account which should redirect them to the bully dog login page. This does not work, it redirects them to the sctflash login page.

    If you click the above links, you can see what I am talking about. The strange thing is that it has worked before, but then it doesn't, so it might work for you.

    I just tried it at the current machine I am at and it worked, but it doesn't work if I try it at home or maybe somewhere else, so I am curious if the 301 URL Tracker caches any of this stuff.

    Here is a screenshot of my entry for 301 URL Tracker:

    enter image description here

  • Cimplex 113 posts 576 karma points
    Jun 17, 2016 @ 15:45
    Cimplex
    0

    Hi Saied, Yeh it works för me :) try clearing your cache and restart your browser, the redirects are cached pretty hard, or try a diffrent browser.

    // Herman

  • Saied 349 posts 674 karma points
    Jun 17, 2016 @ 16:18
    Saied
    2

    OK Thanks, Maybe you can be my QA now lol :).

    Yes I figured it was caching really hard. I will continue to clear my cache and restarting.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies