![]() |
|
Reach specific html link ? - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: Atozed Software (https://www.atozed.com/forums/forum-1.html) +--- Forum: IntraWeb (https://www.atozed.com/forums/forum-3.html) +---- Forum: English (https://www.atozed.com/forums/forum-16.html) +----- Forum: IntraWeb General Discussion (https://www.atozed.com/forums/forum-4.html) +----- Thread: Reach specific html link ? (/thread-1349.html) |
Reach specific html link ? - gabin1405 - 10-29-2019 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. RE: Reach specific html link ? - MJS@mjs.us - 10-29-2019 Hello, I think this is what you are looking for: http://docs.atozed.com/docs.dll/classes/TContentForm.html https://github.com/Atozed/IntraWeb/tree/master/XIV/Delphi/ContentHandlers Regards RE: Reach specific html link ? - gabin1405 - 10-30-2019 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. |