Skip to content

Instantly share code, notes, and snippets.

@christianchristensen
Created August 21, 2012 02:21
Show Gist options
  • Save christianchristensen/3410787 to your computer and use it in GitHub Desktop.
Save christianchristensen/3410787 to your computer and use it in GitHub Desktop.
Silex PHP simple app rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/app
RewriteRule ^(/?)(.*) /app/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ app/index.php [L]
</IfModule>
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