23 lines
		
	
	
		
			731 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			731 B
		
	
	
	
		
			ApacheConf
		
	
	
	
	
	
| <IfModule mod_rewrite.c>
 | |
|     RewriteEngine On
 | |
|     # RewriteBase /
 | |
| 
 | |
|     # Force HTTPS (disabled by default)
 | |
|     # RewriteCond %{HTTPS} off
 | |
|     # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 | |
| 
 | |
|     # Reverse Proxy ; Force HTTPS (disabled by default)
 | |
|     # RewriteCond %{HTTP:X-Forwarded-SSL} off
 | |
|     # RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
 | |
| 
 | |
|     # Remove trailing slashes from request URL
 | |
|     #RewriteCond %{REQUEST_FILENAME} !-d
 | |
|     #RewriteCond %{REQUEST_URI} (.+)/$
 | |
|     #RewriteRule ^ %1 [R=301,L]
 | |
| 
 | |
|     # Redirect everything into app
 | |
|     RewriteCond %{REQUEST_FILENAME} !-f
 | |
|     RewriteCond %{REQUEST_FILENAME} !-d
 | |
|     RewriteRule ^([^?]*)$ %1 [NC,L,QSA]
 | |
| </IfModule>
 |