- 設定 httpd.conf
123<Directory "D:/test/">AllowOverride All</Directory> - 新增文件.htaccess
12345RewriteEngine on# 不管使用者輸入 sofast.info 或 www.sofast.info,一律導向 blog.exfast.meRewriteCond %{HTTP_HOST} ^sofast.info$ [OR]RewriteCond %{HTTP_HOST} ^www.sofast.info$RewriteRule ^(.*)$ https://blog.exfast.me/$1 [R=301,L]

利用 Apache 的 htaccess 進行轉址
這裡的資訊對您有用嗎?歡迎斗內給我