Skip to content

Commit dfe5321

Browse files
committed
initial commit
0 parents  commit dfe5321

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.htaccess

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine on
3+
RewriteRule ^$ public/ [L]
4+
RewriteRule (.*) public/$1 [L]
5+
</IfModule>

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Simple PHP Framework
2+
3+
This is a simple MVC framework written for personal needs on a smaller projects. The framework is based on a tutorial by [anantgarg.com](http://anantgarg.com/2009/03/13/write-your-own-php-mvc-framework-part-1/).

public/.htaccess

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine On
3+
4+
RewriteCond %{REQUEST_FILENAME} !-f
5+
RewriteCond %{REQUEST_FILENAME} !-d
6+
7+
# Rewrite all other URLs to index.php/URL
8+
RewriteRule ^(.*)$ index.php?url=$1 [PT,L]
9+
10+
11+
</IfModule>
12+
<IfModule !mod_rewrite.c>
13+
ErrorDocument 404 index.php
14+
</IfModule>

0 commit comments

Comments
 (0)