Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I've gotten solutions within a day - it saved a lot of time and actually got me one ATTABOY from my boss..."

Geography

Where in the world do Tek-Tips members come from?
1DMF (Programmer)
30 May 12 6:48
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 'www.mydomain.co.uk/index.htm' I get test matched OK, I tried the test 'www.mydomain.co.uk/' 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

http://www.mydomain.com/{R:2} 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 www.mydomain.com 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!"

[link http://dance-music.org]Free Electronic Dance Music Download

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close