1 頁 (共 1 頁)

請教網址指向?

發表於 : 2015-05-07 16:58
yehrussell
請教網址指向?
之前記得竹貓有此文,但我找不到,在此請教

這網址 :arrow: http://herb-tw.com/
我想指向入口網站 :arrow: http://herb-tw.com/portal.php
請問我該在 .htaccess 如何處理? 謝謝

Re: 請教網址指向?

發表於 : 2015-05-07 18:30
心靈捕手
yehrussell 寫:請教網址指向?
之前記得竹貓有此文,但我找不到,在此請教

這網址 :arrow: http://herb-tw.com/
我想指向入口網站 :arrow: http://herb-tw.com/portal.php
請問我該在 .htaccess 如何處理? 謝謝
試試在最後一行之後,新增一行:

代碼: 選擇全部

DirectoryIndex portal.php index.php index.html index.htm

Re: 請教網址指向?

發表於 : 2015-05-07 23:09
yehrussell
非常感謝老師! 已經可以囉 :-D

Re: 請教網址指向?

發表於 : 2018-01-19 15:58
yehrussell
再次請教老師
我想網址--> http://herb-tw.com/index.php
指向 --> http://herb-tw.com/phpbb/index.php
我該如何設? 謝謝老師

Re: 請教網址指向?

發表於 : 2018-01-19 20:29
心靈捕手
yehrussell 寫:再次請教老師
我想網址--> http://herb-tw.com/index.php
指向 --> http://herb-tw.com/phpbb/index.php
我該如何設? 謝謝老師
呵呵!您已經改用 AppServ 套件架站。
剛剛重新下載、試用,的確很適合入門者快速架站。
2018-01-19_201229.png
依您的需求,只需要在 /www 資料夾底下,存放一個「index.html」檔案即可。
以下是 index.html 的參考內容:

代碼: 選擇全部

<html>
<head>
<title>自動轉址</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Refresh" content="0; url=http://herb-tw.com/phpbb/index.php">
</head>

<body bgcolor="#FFFFFF" text="#000000">

</body>
</html>
建議您:
1. 用(Notepad++)文字編輯器編輯,儲存成 UTF-8 (檔首無 BOM) 編碼格式。
2. 適度修改您的簽名檔。

Re: 請教網址指向?

發表於 : 2018-01-20 00:46
yehrussell
首先謝謝老師幫忙! :-D
心靈捕手 寫:......
1. 用(Notepad++)文字編輯器編輯,儲存成 UTF-8 (檔首無 BOM) 編碼格式。
2. 適度修改您的簽名檔。
AppServ 套件架站是我權宜之計
因為想移到竹貓的租用空間,請代管主機!
Apache、MySQL、PHP、phpMyAdmin等升級太頻繁,我不是專業者
常常升級是會有些困擾,想想請竹貓附屬租用管理空間
先把論壇恢復,然後在移機過去租用空間
當然希望phpBB3.1.0版的資料可以成功
不然又要回復到phpBB3.0.14版資料,已經是去年5月17日的資料
所以網址指向,弄好論壇再來設程式,再次感恩老師!

Re: 請教網址指向?

發表於 : 2018-01-25 16:54
yehrussell
感恩捕手老師幫忙
已經放上去