如何在 Google Chrome 裡刪除某一網站的 Cookie 記錄

在某些情況下,我們需要刪除特定網站的 Cookie 記錄 (若使用刪除全部快取,會導致其他網站的 Cookie 記錄都被刪除,即其他網站記錄 (如自動登入) 等自動刪除) 在 Google Chrome 裡,去 “Settings” 搜索 – “site settings”   選擇 “Cookies and site data”   選擇 “See all cookies and site data”...

Redirect from http to https

如果用戶剛安裝了 SSL, 又想整個網站由 HTTP 轉址至 HTTPS , 用戶可以在 .htaccess 加入以下 (未修改前,如果有 .htaccess 這個檔案,記得備份 backup ) RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*)...

如何透過 PHP 經 PHPMailer 登入及發送電郵

有些情況下,客人 PHP 網頁程式會透過 PHPMailer 作發送電郵。 基本 PHPMailer 例子設定如下 – (需要更改 Host, Username, Password , and your email content) <?php # # Based on PHPMailer v6.0.5 # ref.: https://github.com/PHPMailer/PHPMailer # require “PHPMailer/src/PHPMailer.php”;...

網站轉址 – 從指定文件夾轉向另一個指定文件夾

在某些情況下,客戶可能會製作/更新網站。 客戶的原始網站可能是 (e.g.) 在 /shop/ 客戶的新網站可能是 (e.g.) 在 /shop2/ 然後,在新網站 (e.g. /shop2/ ) 成功發佈後,最好將原有路徑 (e.g. /shop/ ) 的流量指向新路徑 (e.g. /shop2/ ) 用戶可以考慮使用 Apache mod_rewrite 來建立這樣的 URL 網垃轉址。 在舊文件夾 (e.g. /shop/ ) 中,建立具有以下內容的 .htaccess: 例子 1:從 /shop/* 重定向到...

SSL 可能有助 SEO 排名

根據 Google 近日官方網誌,網站有安裝 SSL certificate 可能對 SEO 有所得益。 根據 Google 網誌 We’ve also seen more and more webmasters adopting HTTPS (also known as HTTP over TLS, or Transport Layer Security), on their website, which is encouraging. For these reasons, over the past few months...

PHP 及網站轉址

在某些情況下,客戶想要有一些網站轉址 (site URL redirection)。 例如,您可能需要將 http://www.abc.com/ 轉發到 http://www.abc.com/eshop 如果是這樣,你需要有網站轉址。 你可以透過以下 PHP 範例作網站轉址 – 建立 index.php – 複製及貼上以下程式 – 修改目的地網址 <?php header( “Location: http://www.website-solution.net” );...

Pin It on Pinterest