<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<clear />
<rule name="Redirect to https" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTPS}" pattern="off" ignoreCase="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Force www. in a generic way with .htaccess
source: https://www.dataplugs.com/tc/kb/使用-htaccess-檔案強制將-http-導向-https-ssl/
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
</IfModule>
Force SSL with .htaccess
source: https://www.siteground.com/kb/how-to-force-ssl-with-htaccess/
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
將網頁變成黑白
在CSS加入…
html {
-webkit-filter: grayscale(100%);
-moz-filter: grayscale(100%);
-ms-filter: grayscale(100%);
-o-filter: grayscale(100%);
filter: progid:DXImageTransform.Microsoft.BasicImage(grayscale=1);
_filter: none;
}
woocommerce 以件數計算運費筆記
https://wordpress.org/plugins/woocommerce/
以件數計算運費
50 + (10+ [qty]) // 意思是最低收費為: 1件是50+10; 2件是50+20; 如此類推
[fee percent=”10″ min_fee=”50″ max_fee=”200″] // 運費是貨物的10%, 最低50, 最高200
