Skip to content

Instantly share code, notes, and snippets.

@arrel
Last active February 3, 2016 20: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 arrel/24a9f92f7096cec3156a to your computer and use it in GitHub Desktop.
Save arrel/24a9f92f7096cec3156a to your computer and use it in GitHub Desktop.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
AddType image/svg+xml svg svgz
AddEncoding gzip svgz
# Turn on the rewrite engine
RewriteEngine on
RewriteBase /
# <VirtualHost *:80>
# RequestHeader set X-Forwarded-Proto "http"
#
# RewriteEngine On
# RewriteCond %{HTTP:X-Forwarded-Proto} !https
# RewriteRule https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
# </VirtualHost>
# RewriteCond %{SERVER_PORT} 80
# RewriteRule https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
# RewriteCond %{HTTP:X-Forwarded-Proto} !https
# RewriteRule !/status https://%{SERVER_NAME}%{REQUEST_URI} [L,R]
# Redirect http to https
# RewriteCond %{ENV:HTTPS} !on [NC]
# RewriteRule ^(.*)$ https://new.soldsie.com/$1 [R,L]
# Redirect root to new web.soldsie.com, unless it's gravity forms' stripe webhook endpoint
RewriteCond %{QUERY_STRING} !(^|&)callback=gravityformsstripe
RewriteRule ^$ http://web.soldsie.com/ [R=301,L]
# Redirect new pages
RedirectMatch 301 /jobs http://web.soldsie.com/jobs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment