Hi,
i’m a beginner in slim api, but i build working rest api on my local machine. Now i want to deploy it on my ovh server. How could i do this?
On the server i want to have following structure for my api:
- www (web folder for my website)
- myapi - folder where i want to store any files from my slim api rest project
- public_html, src, composer.lock/json vendor etc.
And i want to set my on some path for example: myapi.com/myapi/api/users.
- public_html, src, composer.lock/json vendor etc.
- myapi - folder where i want to store any files from my slim api rest project
I stored index.php and .htaccess files in public_html folder. There is a .htaccess content:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
</IfModule>
Thanks for any reply