Skip to content

Instantly share code, notes, and snippets.

@enqtran
Last active November 29, 2021 13:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enqtran/cf50156b2a463d6ee267338314b9d276 to your computer and use it in GitHub Desktop.
Save enqtran/cf50156b2a463d6ee267338314b9d276 to your computer and use it in GitHub Desktop.
<VirtualHost *:80>
DocumentRoot /home/web/build/
<Directory"/home/web/build/">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subdirectory
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment