0

I would like to redirect http://foo/bar to http://bar/foo?q=http://foo/bar

Where foo and bar are dynamic...

But I cant seem to find a $HTTP var that has the complete url. I have also tried nesting, but I can't get a reference to Scheme (its overwritten by host)

How is this done?

Adam Mills
  • 25
  • 8

1 Answers1

0

As there are only two schemes you can simply duplicate that config part for each possible scheme.

Stefan
  • 819
  • 1
  • 7
  • 18
  • what would that look like? I currently use $HTTP["host"] in order to get the incoming domain. If I nest $HTTP["scheme"] and $HTTP["host"] I lose one of them (i.e. %0 only refers to the inner most) – Adam Mills Oct 28 '14 at 06:09
  • Doh! I dont need to reference scheme, just match it! Got it. – Adam Mills Oct 28 '14 at 06:15