Skip to content

Instantly share code, notes, and snippets.

@Dron84
Created June 23, 2020 07: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 Dron84/ee03434ef17872f55da69a57fa67384e to your computer and use it in GitHub Desktop.
Save Dron84/ee03434ef17872f55da69a57fa67384e to your computer and use it in GitHub Desktop.
htaccess for vue
RewriteEngine On
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^index.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment