Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Listen 80
  2. <VirtualHost *:80>
  3. ServerName projectname.dev
  4. DocumentRoot /var/www/projectname/public
  5. <Directory /var/www/projectname>
  6. AllowOverride All
  7. Allow from all
  8. </Directory>
  9. </VirtualHost>
  10.  
  11. <IfModule mod_rewrite.c>
  12. <IfModule mod_negotiation.c>
  13. Options -MultiViews
  14. </IfModule>
  15.  
  16. RewriteEngine On
  17.  
  18. RewriteCond %{HTTP:Authorization} ^(.*)
  19. RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  20.  
  21. # Redirect Trailing Slashes If Not A Folder...
  22. RewriteCond %{REQUEST_FILENAME} !-d
  23. RewriteRule ^(.*)/$ /$1 [L,R=301]
  24.  
  25. # Handle Front Controller...
  26. RewriteCond %{REQUEST_FILENAME} !-d
  27. RewriteCond %{REQUEST_FILENAME} !-f
  28. RewriteRule ^ index.php [L]
  29.  
  30. RewriteCond %{HTTP:Authorization} .
  31. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  32. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement