Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IIS7 Rewrites driving me mad!!!

Status
Not open for further replies.

1DMF

Programmer
Jan 18, 2005
8,795
GB
I don't seem to be able to get the IIS7 rewite engine working.

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*
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
Code:
[URL unfurl="true"]http://www.mydomain.com/{R:2}[/URL]
301
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top