From 0b2a0d4ea9b5722e491bda747f4ba2a71950fd51 Mon Sep 17 00:00:00 2001 From: "Timothy J. Warren" Date: Fri, 5 Feb 2016 14:14:02 -0500 Subject: [PATCH] Add basic htaccess file for apache --- .gitignore | 20 ++++++++++---------- .htaccess | 7 +++++++ 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 .htaccess diff --git a/.gitignore b/.gitignore index f1d02ab6..9ebe940e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,22 +1,22 @@ .codelite +.phing_targets +.sonar/ *.phprj *.workspace vendor -app/cache/* -app/logs/* -public/js/cache/* +**/cache/** +**/logs/** +**/coverage/** +**/docs/** public/images/* -public/cache/* composer.lock *.sqlite *.db *.sqlite3 docs/* -coverage/* tests/test_data/sessions/* -build/coverage/* -build/logs/* -build/pdepend/* -build/phpdox/* cache.properties -tests/test_data/cache/* +build/** +!build/*.txt +!build/*.xml +!build/*.php diff --git a/.htaccess b/.htaccess new file mode 100644 index 00000000..cca7887c --- /dev/null +++ b/.htaccess @@ -0,0 +1,7 @@ +#Rewrite index.php out of the app urls +RewriteEngine On +RewriteBase / +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond $1 !^(public) +RewriteRule ^(.*)$ index.php/$1 [L] \ No newline at end of file