From 1eeafc28a8b9599cea5a7e750ca68719b5f01ae6 Mon Sep 17 00:00:00 2001 From: hitautodestruct Date: Thu, 24 Mar 2016 10:05:51 +0200 Subject: [PATCH 1/2] Note regarding usage of flight in a subdirectory Thanks to this question and answer http://stackoverflow.com/questions/20890210/flight-php-routing-from-subdirectory --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 84c6290..d4253cc 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] ``` +**Note**: If you need to use flight in a subdirectory add the line `RewriteBase /flight/` just after `RewriteEngine On`. + For *Nginx*, add the following to your server declaration: ``` From af6afc6786a429065bc938168ac8a7f0e3ffa57f Mon Sep 17 00:00:00 2001 From: hitautodestruct Date: Mon, 28 Mar 2016 22:18:58 +0300 Subject: [PATCH 2/2] Changed flight to dir subdir --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d4253cc..4f9ae16 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] ``` -**Note**: If you need to use flight in a subdirectory add the line `RewriteBase /flight/` just after `RewriteEngine On`. +**Note**: If you need to use flight in a subdirectory add the line `RewriteBase /subdir/` just after `RewriteEngine On`. For *Nginx*, add the following to your server declaration: