Skip to content

Commit

Permalink
reset gitignore file
Browse files Browse the repository at this point in the history
  • Loading branch information
seong0318 committed Jan 30, 2020
1 parent 72aaa56 commit 1dceddd
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
13 changes: 1 addition & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
log/*
cache/*
app/src/models

.vim/*
.composer/*
.cache/*
.viminfo
.mysql_history.TMP-
.mysql_history
.htaccess
.DS_Store
.Xauthority
.bash_history
app/src/models
16 changes: 16 additions & 0 deletions public/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# For production, put your rewrite rules directly into your VirtualHost
# directive and turn off AllowOverride.

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]


RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::\2$
RewriteRule ^(.*) - [E=BASE:%1]
RewriteRule ^(.*)$ %{ENV:BASE}index.php [NC,L]
</IfModule>
12 changes: 12 additions & 0 deletions vendor/slim/slim/example/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Note: see https://httpd.apache.org/docs/current/howto/htaccess.html:
#
# "You should avoid using .htaccess files completely if you have access to
# httpd main server config file. Using .htaccess files slows down your Apache
# http server. Any directive that you can include in a .htaccess file is
# better set in a Directory block, as it will have the same effect with
# better performance."

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

0 comments on commit 1dceddd

Please sign in to comment.