I have small php built using slim framework. I have set it up on apache which runs on localhost:8055
. Using /users/get
on localhost:8055
I am able to get api results without having to use index.php/users/get
.
Now, I also have IIS running on port 80 and it listens to external requests over internet. I have setup a site on iis with reverse proxy rewrite rule to localhost:8085. I am able to get result over internet via IIS reverse proxy to localhost:8055 using mydomain.com/index.php/users/get
but not using mydomain.com/users/get
. I think its not picking .htaccess when request goes from iis to apache.
Here is my htaccess file:
RewriteEngine On
RewriteBase /office/gcm_chat/v1/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]