Last active
February 3, 2016 20:50
-
-
Save arrel/24a9f92f7096cec3156a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 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