Skip to content

Instantly share code, notes, and snippets.

@KrissieV
Created February 7, 2017 07:50
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 KrissieV/eead31a8c8304c70771a18e304dedc2f to your computer and use it in GitHub Desktop.
Save KrissieV/eead31a8c8304c70771a18e304dedc2f to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://northuxdesign.com/$1 [R,L]
RewriteBase /
RewriteRule ^index\.html$ - [L]
# directories to exclude
RewriteCond %{REQUEST_URI} !(wp-json/*|uploads) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.html [L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment