Add basic htaccess file for apache

This commit is contained in:
Timothy Warren 2016-02-05 14:14:02 -05:00
parent fc02a68691
commit dcf5bebb9b
2 changed files with 17 additions and 10 deletions

20
.gitignore vendored
View File

@ -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

7
.htaccess Normal file
View File

@ -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]