Atozed Forums

Full Version: Reach specific html link ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.