Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reach specific html link ?
#3
Hi,

Thank you very much. It helped me a lot.

For those who would like to get a direct access to a HTML file, you need to create a "fake" html name, to make the redirection.
This is one example :

with THandlers.Add('', 'redirectioner.html', TContentRedirect.Create('goal.html')) do begin
CanStartSession := True;
RequiresSessionStart := false;
end;

You just have to put this code in ServerControllerBaseConfig, then if you type yourserver.com/redirectioner.html you will be redirected to your goal.html page even if you haven't created a session before.
Reply


Messages In This Thread
Reach specific html link ? - by gabin1405 - 10-29-2019, 04:50 PM
RE: Reach specific html link ? - by MJS@mjs.us - 10-29-2019, 08:33 PM
RE: Reach specific html link ? - by gabin1405 - 10-30-2019, 10:02 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)