Y Cheung 有張SIM卡很奇怪,在 Pixel 7a手機上無法使用,能識別出號碼,但是就是無法註冊網絡,而這張卡在iPhone上使用是沒問題的。於是上網查了一下,原來是Google搞的鬼!連韓國網友也深受其害。幸好不是沒有解決方案,一二三,搞起!
Wordpress中某個下載頁面匿名用戶只能在提交表單後訪問,方法是在頁面加載的時候檢查表單提交成功的標記是否存在,不存在就跳轉去表單頁面,這裡使用了 wp_redirect() 方法。
Per-directory rewrites need rewriting within <Directory> sections or .htaccess files, which introduces some complexity. However, if you only have permission to modify files, you must know how to put redirects in .htaccess files with RewriteRule.
1RewriteEngine on 2RewriteRule ^/index\.html$ /index.php [L] A RewriteRule consists of three arguments separated by spaces.
The arguments are
Pattern: which incoming URLs should be affected by the rule, ex ^/index\.html$; Substitution: where should the matching requests be sent, ex /index.php; [flags]: options affecting the rewritten request, ex [L]. Here are 5 tips for creating redirects in .htaccess files.