Skip to content

Instantly share code, notes, and snippets.

@Fanreza
Created September 30, 2022 01:28
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 Fanreza/15beb3e640079568ae3871f200b7d208 to your computer and use it in GitHub Desktop.
Save Fanreza/15beb3e640079568ae3871f200b7d208 to your computer and use it in GitHub Desktop.
Htacces for deploying vue apps in subdirectory
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /subDirectory
RewriteRule ^subDirectory/index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /subDirectory/index.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment