九月 07, 2006

[系統] 簡易網址

預設第一個網誌的網址為

http://your_ip/lifetype/index.php?blogId=1


第二個網誌就是

http://your_ip/lifetype/index.php?blogId=2


一般而言,這樣的網址是比較難記的,改成像


http://your_ip/lifetype/1(第一個網誌)
http://your_ip/lifetype/2(第二個網誌)


就稱為簡潔網址。

修改步驟

1. Apache 伺服器的設定

<Directory "C:/AppServ/www/lifetype">
Options Indexes FollowSymLinks

AllowOverride All

Order allow,deny
Allow from all
</Directory>

重新啟動 Apache

-------------------------------------------------
2. .htaccess 要加入


RewriteBase /lifetype
ErrorDocument 401 /lifetype/error.php
ErrorDocument 403 /lifetype/error.php
ErrorDocument 404 /lifetype/error.php

3. 進入管理介面

全部網站管控 >全域設定>網址設定>選用「讓搜尋引擎易於搜尋的簡潔網址」



發佈者: 蔡明璇 at 18:42│  點閱次數 (313)│ 修改文章管理迴響迴響 (0)95年9月-部落格系統班
回應文章
(必要)
authimage