Copied to clipboard

Flag this post as spam?

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


  • Anders Stentebjerg 58 posts 234 karma points
    Mar 03, 2011 @ 16:03
    Anders Stentebjerg
    0

    urlrewriting.config without .aspx

    I'm moving an existing site into a new and I created some redirects in order not to lose link juice to the search engines.

    Problem is just that it does not work, as I think it should :(

    The first in the two examples works fine but the next jump to a completely wrong page. What am I doing wrong?

        <add name="mereinformation/advokatprofilerne/amaliebaden"
    virtualUrl="^~/mereinformation/advokatprofilerne/amaliebaden/"
    destinationUrl="~/hvem-er-vi/advokater/amalie-baden"
    redirect="Application"
    redirectMode="Permanent"
    ignoreCase="true" />

    <add name="familieadvokat/laesomadvokaterne/amaliebaden"
    virtualUrl="^~/familieadvokat/laesomadvokaterne/amaliebaden/"
    destinationUrl="~/hvem-er-vi/advokater/amalie-baden"
    redirect="Application"
    redirectMode="Permanent"
    ignoreCase="true" />
  • Søren Spelling Lund 1797 posts 2786 karma points
    Mar 03, 2011 @ 23:23
    Søren Spelling Lund
    0

    If you've got other rules one of them might be triggered before you get to the one you want. Try moving the one that doesn't work to the top of the list and see happens.

Please Sign in or register to post replies

Write your reply to:

Draft