I don't seem to be able to get the IIS7 rewite engine working.
I create a rule as follows...
Match URL
I use the 'test patten' option with ' I get test matched OK, I tried the test ' again test matches ok, and shows {R:2} as the back reference variable that will hold the rest of the URL after the .uk
...so far so good.
Then onto the condition....
Match All
tested with above input, again test matched and shows {C:2} as the back reference variable that will hold the rest of the URL after the .uk
again looking good.
so onto the redirect part...
Redirect
but all it does is send it to .com without the trailing parameter {R:2}
I've tried {R:0} , {R:1} , {R:2}, {C:0}, {C:1}, {C:2} nothing works?
All it does is redirect to and ignores the rest of the URL?
Why won't this work?
Thanks,1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Download
I create a rule as follows...
Match URL
Code:
Matches the patern
using wildcards
pattern = *.co.uk*
I use the 'test patten' option with ' I get test matched OK, I tried the test ' again test matches ok, and shows {R:2} as the back reference variable that will hold the rest of the URL after the .uk
...so far so good.
Then onto the condition....
Match All
Code:
{HTTP_HOST}
matches the pattern
pattern = *.co.uk*
again looking good.
so onto the redirect part...
Redirect
Code:
[URL unfurl="true"]http://www.mydomain.com/{R:2}[/URL]
301
I've tried {R:0} , {R:1} , {R:2}, {C:0}, {C:1}, {C:2} nothing works?
All it does is redirect to and ignores the rest of the URL?
Why won't this work?
Thanks,1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music Download