Hello good evening,

First sorry for my terible English, but i have a Raspberry Pi and have with Apache 7 and connection with my Captive Portal.
This is working only what I would like to have is this:

So when I go to a site like porsche.com
Then I would like to redirect to my Captive Portal. (This is working)
Only what I now need is, when i LOG IN with my username/password than I would like to redirect from the URL that I typed.

So when I typ Google.com or Porsche.com then I redirect to my Captive Portal, but when I enter my username en password then I would like to redirect from the the URL that I typed and go to Porsche.com (for example)

Thanks you all very much!