Created
March 31, 2020 21:27
-
-
Save samueleiche/5bec0899d82e4d55d367532f7faf135c to your computer and use it in GitHub Desktop.
Vue.js VueRouter .htaccess config for subdirectory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
DirectoryIndex /vue/dist/index.html | |
RewriteEngine On | |
RewriteBase /vue/dist | |
RewriteRule ^vue/dist/index\.html$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /vue/dist/index.html [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment