#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    112
    Rep Power
    16

    Question URL Rewrite help


    I have a slightly unusual requirement for URL rewrite. I have a folder called brand and I want to redirect any requests outside of the brand folder to the brand folder but any requests inside the brand folder to be left alones.

    So for example, if somebody requests the following URL:
    www.test.com/a-folder/a-file.aspx

    They are redirected to:
    www.test.com/brand/
    And see this in the browser

    However if they choose:
    www.test.com/brand/a-second-file.apsx
    They see the a-second-file.aspx in their browser and are not redirected.

    Many thanks
    Last edited by decker27; September 22nd, 2015 at 05:43 AM.
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    112
    Rep Power
    16
    ^(?!brand).* seems to work - for other people should they stumble across this

IMN logo majestic logo threadwatch logo seochat tools logo