Copied to clipboard

Flag this post as spam?

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

  • Thomas Dolberg 74 posts 95 karma points
    Aug 15, 2011 @ 22:56
    Thomas Dolberg

    redirecting a node to a single url



    right now I can access a node with the following URLs (at least):

    - nodeName.aspx

    - nodeName

    - nodeName/


    how do I setup urlrewriting so all other requests for the node will permanently redirect to "nodeName/" ? I want to do it, because Google will see the above three URLs as three different pages and think it is duplicate content.




  • Stefan Kip 1614 posts 4131 karma points c-trib
    Aug 15, 2011 @ 23:40
    Stefan Kip

    Hi Thomas,

    I've put together a regex for you to do this:


    This will match string like 'nodename.aspx' and 'nodename' (without an ending slash). They both capture 'nodename', so you'll have to redirect to '{R:1}/' which means '<group1>/'.


  • Thomas Dolberg 74 posts 95 karma points
    Aug 20, 2011 @ 20:22
    Thomas Dolberg

    Hi kipusoep


    thanks for the regex.


    I ended up using the rewrite URLs at since they cover all the things I need.


    best regards


Please Sign in or register to post replies

Write your reply to: