add to .htaccess file: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}/%{REQUEST_URI}
-
-
Replying to @estellevw
is this for forcing https??? I have a similar one that is a bit different... I'm so bad at apache I don't really know if it is working 100%
1 reply 0 retweets 0 likes -
Replying to @MylesBorins @estellevw
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1/$1 [R=301,L] RewriteCond %{HTTPS} =on
2 replies 0 retweets 0 likes -
Replying to @MylesBorins @estellevw
That rule redirects to http:// though
1 reply 0 retweets 0 likes -
Replying to @mathias @estellevw
it just dawned on me that the script is for forwarding www. -> . then I have...
1 reply 0 retweets 0 likes -
RewriteCond %{SERVER_NAME} =kni.sh RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [L,QSA,R=permanent]
1 reply 0 retweets 0 likes
Ideally you wouldn’t even use .htaccess for this: https://wiki.apache.org/httpd/RedirectSSL …
-
-
Replying to @mathias @estellevw
I need to retire that server and do everything with k8s and ingress
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.