Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Listen 80
- <VirtualHost *:80>
- ServerName projectname.dev
- DocumentRoot /var/www/projectname/public
- <Directory /var/www/projectname>
- AllowOverride All
- Allow from all
- </Directory>
- </VirtualHost>
- <IfModule mod_rewrite.c>
- <IfModule mod_negotiation.c>
- Options -MultiViews
- </IfModule>
- RewriteEngine On
- RewriteCond %{HTTP:Authorization} ^(.*)
- RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
- # Redirect Trailing Slashes If Not A Folder...
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)/$ /$1 [L,R=301]
- # Handle Front Controller...
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^ index.php [L]
- RewriteCond %{HTTP:Authorization} .
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement