Skip to content

Instantly share code, notes, and snippets.

@dirk
Created March 6, 2014 23:24
Show Gist options
  • Save dirk/9401880 to your computer and use it in GitHub Desktop.
Save dirk/9401880 to your computer and use it in GitHub Desktop.
vhost.conf:
<VirtualHost *:80>
<Directory "/sites.../app">
AllowOverride All
Order allow,deny
Allow from all
</Directory>
DocumentRoot "/sites.../app/public"
ServerName app.dev
</VirtualHost>
public/.htaccess:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]
public/index.php:
<?
require '../app.php';
global $app;
$app->run();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment