Created
          August 2, 2016 02:40 
        
      - 
      
 - 
        
Save daronspence/ddecc024eda111b38d389368fdbd0cc6 to your computer and use it in GitHub Desktop.  
    Redirect and preserve POST requests
  
        
  
    
      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
    
  
  
    
  | RewriteEngine On | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteCond %{REQUEST_METHOD} GET | |
| RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] | |
| RewriteCond %{SERVER_PORT} 80 | |
| RewriteRule ^(.*)$ https://example.com/$1 [R=307,L] | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment