Skip to content
LaCodon edited this page Dec 14, 2015 · 1 revision

If you use Nginx as a webserver, you do not need any .htaccess file but pass the following steps in order to make a Famework project running:

  1. Navigate to your sites-available folder on your server (e.g. /etc/nginx/sites-available/ on default Debian 8)
  2. Open the file for your vhost
  3. Search for the location / { section within the server { part
  4. Paste try_files $uri $uri/ /index.php?$args; in this section; Maybe you have to replace /index.php with something like /path/index.php if your /index.php is publicly accessible via http://www.example.com/path/index.php
  5. Reload the config via executing sudo /etc/init.d/nginx reload on the command line interface

This just makes Nginx to redirect any request to /index.php and thus enabling the nice path feature of Famework.

Clone this wiki locally