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?

1 Answer 1

0

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

2
  • 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, 2014 at 6:09
  • Doh! I dont need to reference scheme, just match it! Got it.
    – Adam Mills
    Oct 28, 2014 at 6:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .