![]() |
React and Codeigniter served from same server/port? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: React and Codeigniter served from same server/port? (/showthread.php?tid=85843) |
React and Codeigniter served from same server/port? - dgvirtual - 12-10-2022 I intend to use Codeigniter as an restAPI backend to a React.js app and serve both from the same shared hosting website, so, same URL/port. The Apache server on that shared hosting gives priority to index.html over index.php file, so by default the server will load the React.js app. I intend to keep the index.php file (if possible, rename it to api.php) in the uri's of my CI app, so that Apache would not redirect those api calls to the index.html/React.js app. Do you think that will work? Any caveats to be aware off? |