強制使用 HTTPS (HTTP 重新導向 HTTPS)

如果在cPanel內設定了”Redirects”功能,將 http 重新導向至 https,但未能正確地顯示網頁的內容,甚至出現錯誤的畫面 (例如Chrome 出現”ERR_TOO_MANY_REDIRECTS”),可以手動在 .htaccess 檔內,鍵入以下3行便可 RewriteEngine OnRewriteCond %{HTTPS} offRewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}...

CHANGE UBUNTU FROM DYNAMIC IP TO STATIC IP

Change the following 2 files 1) /etc/network/interfaces 2) /etc/resolv.conf Steps 1) sudo vi /etc/network/interfaces The followings will be seen. auto eth0iface eth0 inet dhcp change to auto eth0iface eth0 inet staticaddress 192.168.0.2netmask 255.255.255.0network...