Add basic htaccess file for apache

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

20
.gitignore vendored
View File

@ -1,22 +1,22 @@
.codelite .codelite
.phing_targets
.sonar/
*.phprj *.phprj
*.workspace *.workspace
vendor vendor
app/cache/* **/cache/**
app/logs/* **/logs/**
public/js/cache/* **/coverage/**
**/docs/**
public/images/* public/images/*
public/cache/*
composer.lock composer.lock
*.sqlite *.sqlite
*.db *.db
*.sqlite3 *.sqlite3
docs/* docs/*
coverage/*
tests/test_data/sessions/* tests/test_data/sessions/*
build/coverage/*
build/logs/*
build/pdepend/*
build/phpdox/*
cache.properties 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]