[討論] 404用.htaccess轉跳已成功 但如何再把子網域轉跳

看板Web_Design作者 (John)時間16年前 (2010/01/28 19:10), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
1.轉跳404不存在網頁 已經成功 2.請問如何再把子網域轉跳呢 以下是.htaccess內容 (我做了個nofond.html且用meta設定轉跳) -----這邊可以轉跳404.但子網域無法轉跳---------- ErrorDocument 404 /index.html DirectoryIndex index.html /path/to/notfound.html ---------------- 3.另外再問 打錯網址如Whttp://網址.com.tw也可以 但是這邊我跟第一點放在一起 無法成功 先建立.htaccess的文件,內容貼上以下 RewriteEngine on RewriteCond %{HTTP_HOST} ^(網址\.com\.tw)(:80)? [NC] RewriteRule ^(.*) http://網址.ccc.com.tw/$1 [R=301,L] -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.29.1.105
文章代碼(AID): #1BON2fUv (Web_Design)
文章代碼(AID): #1BON2fUv (Web_Design)