A FMX (or VCL) application is not a Web application. The best way, if you need to have a full Delphi Web dev project, is to use a framework like TMS Web Core : https://www.tmssoftware.com/site/tmswebcore.asp or UniGui : https://www.unigui.com/ both creating web applications in Delphi.