歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 20, 2024, 02:58:54 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  怪怪的閱讀全文 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: 怪怪的閱讀全文  (閱讀 12515 次)
milo
新手見習
*
文章: 14



檢視個人資料
« 於: 八月 08, 2005, 12:05:45 上午 »

剛才試著Post一篇文章,結果發現,閱讀全文出現怪現象。
原本的網址是:http://www.xxx.com/
第一個使用者的blog是:http://www.xxx.com/abc/

但閱讀全文卻出現http://www.xxx.com/abc/abc/index.php?op=ViewArticle&articleId=2&blogId=1

點越多次就會有越多個/abc/目錄,也無法看到全文。
已記錄
sunkit
初級會員
**
文章: 79


檢視個人資料
« 回覆文章 #1 於: 八月 08, 2005, 08:05:35 上午 »

有否使用url rewrite?

可以給個連結看看嘛?
已記錄
milo
新手見習
*
文章: 14



檢視個人資料
« 回覆文章 #2 於: 八月 08, 2005, 09:39:47 上午 »

不好意思,我是新手,什麼是URL rewrite,
是不是Apache的ModRewrite那個?那個我沒有選說。

不好意思,現在在內部測試中,沒有網址可以連....

又,我發現所有的連結每點一次都會多一層目錄說,是因為我有設定次網域嗎?
已記錄
milo
新手見習
*
文章: 14



檢視個人資料
« 回覆文章 #3 於: 八月 08, 2005, 02:50:15 下午 »

又,我發現是因為有設定subdomain的關係,若把subdomain關掉就可以。

但我希望能設定subdomain...  嚎啕大哭

另外一個問題是,當我subdomains_enabled,發現底下的網址都變成www.xxx.com/0001, 而非 0001.xxx.com,爬文的結果發現是我的subdomains_base_url設錯,在改為http://{blogname}.xxx.com即可正確到0001.xxx.com。

不過又有個問題是,http://0001.xxx.com/index.php會出現
Not Found
The requested URL //index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

不過又有個問題是,http://0001.xxx.com/則會出現
Index of /
      Name                    Last modified       Size  Description

Apache/1.3.33 Server at 0001.xxx.com Port 80

但是我的VirtualHost 裡面已經有加
ServerAlias *.xxx.com
還有哪裡要設定嗎?
已記錄
milo
新手見習
*
文章: 14



檢視個人資料
« 回覆文章 #4 於: 八月 08, 2005, 10:08:43 下午 »

不知道為什麼現在OK了。

原本的設定方法good!
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #5 於: 八月 09, 2005, 11:28:36 上午 »

Hi milo:

請看一下這一篇設定: http://wiki.lifetype.net/index.php/PLog_1.0/Admin/Support_for_Subdomains

另外,我會建議你使用 {username} 而非 {blogname},原因在於 blogname 常常是中文的,而 pLog 會針對 blogname 去 normailze 之後,才是使用在 custom url 或是 subdomain 上。這樣常常會出錯,造成找不不到 blog。

Mark
已記錄

milo
新手見習
*
文章: 14



檢視個人資料
« 回覆文章 #6 於: 八月 09, 2005, 12:03:19 下午 »

感謝Mark大大:

那篇之前有看過,的確幫上忙說... 感激感激!

又,我會改成username... 微笑 多謝提醒!
已記錄
頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  怪怪的閱讀全文 « 上篇主題 下篇主題 »
    前往: