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

My company has a commercial website. We use IW15 to manage it, with some HTML files. The point is, if I start a new session, it automatically send the user to the index.html.

I would like to send specific URL link to my clients, but when they click for the first time, they reach the index.html page.

https://www.miv-soft.com/tutoriel.html

It is our website. I would like to go to the specific html file even if it's the first connection. How can I manage it ? 

By the way, the result is the same with a empty project.

Thanks for your help.
Reply
#2
Hello,


I think this is what you are looking for:

http://docs.atozed.com/docs.dll/classes/...tForm.html
https://github.com/Atozed/IntraWeb/tree/...ntHandlers


Regards
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)