Created
August 21, 2012 02:21
-
-
Save christianchristensen/3410787 to your computer and use it in GitHub Desktop.
Silex PHP simple app rewrite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !^/app | |
RewriteRule ^(/?)(.*) /app/$2 [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ app/index.php [L] | |
</IfModule> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app root | |
├── app | |
│ ├── add_card.php | |
│ ├── add_card_process.php | |
│ ├── ... | |
│ ├── assets | |
│ │ ├── ap_btn_b.png | |
│ │ ├── clipboard.png | |
│ │ └── mozilla.pem | |
│ ├── ... | |
│ ├── index.php | |
│ ├── ... | |
│ └── users.php | |
└── vendor |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment