Skip to content

Instantly share code, notes, and snippets.

@dsdsdsdsdsds
Last active December 17, 2017 09:20
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 dsdsdsdsdsds/5d218923fa84a02f90ea6f3a8f888916 to your computer and use it in GitHub Desktop.
Save dsdsdsdsdsds/5d218923fa84a02f90ea6f3a8f888916 to your computer and use it in GitHub Desktop.
Rewrite domain.com/dist/ to domain.com
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain.com$ [NC,OR]
RewriteCond %{REQUEST_URI} !dist/
RewriteRule (.*) /dist/$1 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment