My directory structure is:
> app
- controllers
- core
- includes
- models
- views
- .htaccess
- init.php
> public
- css
- fonts
- images
- js
- .htaccess
- index.php
The .htaccess
file inside public
directory is configured as:
Options -MultiViews
RewriteEngine On
RewriteBase /public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
And the one in app
directory as:
Options -Indexes
I have hosted the application on OpenShift. Though this configuration works well locally but throws 500 Server Error
on OpenShift. Help?