Skip to content

Instantly share code, notes, and snippets.

@DaveRandom
Created July 31, 2017 10:57
Show Gist options
  • Save DaveRandom/04734f7603ba8c0ef57e2ad9ac9dca5d to your computer and use it in GitHub Desktop.
Save DaveRandom/04734f7603ba8c0ef57e2ad9ac9dca5d to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
# DNS name or IP address that is used to access the server
ServerName sandbox.dev
# Declare docroot directory and permissions
DocumentRoot "C:\xampp\htdocs\sandbox\public"
<Directory "C:\xampp\htdocs\sandbox\public">
# Allow any request
Allow from all
Require all granted
# Disable htaccess processing
AllowOverride none
</Directory>
# Route all requests to index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.php [END]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment