Find file
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 792 Bytes
<VirtualHost *:80>
SetEnv ROOT_DIR "/path/to/install"
ServerName an.example.com
DocumentRoot "/path/to/install/public"
ErrorDocument 404 /index.php
Redirect 404 /favicon.ico
<Directory /path/to/install/public>
Options -Indexes +FollowSymLinks -MultiViews
AllowOverride None
Order allow,deny
Allow from all
RewriteEngine on
# Strip trailing slash
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=permanent,L]
# Simulate MultiViews
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,QSA]
</Directory>
</VirtualHost>