Welcome Guest, Not a member yet? Register   Sign In
React and Codeigniter served from same server/port?
#1

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?
==

Donatas G.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB