RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
$ ssh [user]@[server] 'res=`iperf -c 192.168.1.100 -d | tail -c17` echo ${res}'
$ ssh [user]@[server] 'bash -s' < local_script.sh'
RewriteCond %{QUERY_STRING} (^|&)cat\=(+*)($|&)
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteRule ^gallery$ /gallery/%2? [L,R=301]
RewriteCond %{QUERY_STRING} (^|&)cat\=([0-9]{1,})($|&)
RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteRule ^gallery$ /gallery/%2? [L,R=301]