Solved thread

This post is marked as solved. If you think the information contained on this thread must be part of the official documentation, please contribute submitting a pull request to its repository.

Phalcon webapi not working after deployment on Linux Server

I have made a web API using the PHP phalcon framework which is running perfectly on localhost. But when I upload it to a Linux server it's not working. I think it's because of my .htaccess file.

Can you take look? My .htaccess file looks like this:

<IfModule modrewrite.c> RewriteEngine On RewriteCond %{REQUESTFILENAME} !-f RewriteRule ^((?s).*)$ index.php?_url=/$1 [QSA,L] </IfModule>



46.5k
Accepted
answer

There are various reasons why Phalcon project might not work, with your htaccess rules being the least possible.

Provide more details about production environment, and your development as well.

There are various reasons why Phalcon project might not work, with your htaccess rules being the least possible.

Provide more details about production environment, and your development as well.

thanks but i solved it... can you tell me how to connect with 2 dbs in webapi?

You need to use 2 different database servers, or just databases on the same server?