網址設定(自訂網址)
lifetype 自訂網址的設定,好像有點不太好了解,也有點懶得去了解,在網上找到,比照辦理就ok
http://ms7.fhsh.tp.edu.tw/blog/index.php?blogId=1 ==> http://ms7.fhsh.tp.edu.tw/blog/root
直接打網誌管理者名稱,是不是容易記多了,修改如下
- 在 /etc/httpd/conf/httpd.conf 下將 /var/www/html/blog 內的 AllowOverride All ,這樣目錄下的 .htaccess 才有作用
- 將 .htacess 內的
RewriteBase /lifetype
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /lifetype/blog.php
ErrorDocument 401 /lifetype/error.php
ErrorDocument 403 /lifetype/error.php
ErrorDocument 404 /lifetype/error.php - 在全站台管控 => 網址設定 如下
request_format_mode => 自訂網址
permalink_format => /{blogowner}/archives/{postid}$
category_link_format => /{blogowner}/category/{catid}$
blog_link_format => /{blogowner}$
archive_link_format => /{blogowner}/archive/{year}{month}{day}$
user_posts_link_format => /{blogowner}/archives/author/{username}$
post_trackbacks_link_format => /{blogowner}/archives/{postid}/trackbacks/$
template_link_format => /{blogowner}/static/{templatename}$
album_link_format => /{blogowner}/resource/{albumid}$
resource_link_format => /{blogowner}/resource/{albumid}/{resourceid}$
page_suffix_format => /page/{page} - ok
迴響
自訂網址的問題
我的Linux是用台南縣教育網路中心所開發的B2D,我的lifetype是放在/var/www下,我找不到 /etc/httpd/conf/httpd.conf這個檔案,所以不知道去那修改AllowOverride All這個部份,
可以在詳細的告訴我嗎?謝謝。
B2D 的設定在 /etc/apache2/
不好意思,這裡只是我的備忘錄,所以幾乎不會看迴響,其實 /etc/httpd/conf/httpd.conf也就是 apache 的設定檔,B2D 的設定查了一下應該是在 /etc/apache2 下,你可以參考台南縣教育網路中心 http://b2ddoc.tnc.edu.tw/yh/LinuxBase/m6_server_setup.html 的網頁伺服器介紹,有詳細解說
我只是愛你的有趣博客
我想說,你真的幫助我理解的主題 ????(????) | ??
網址設定(自訂網址) | 豬窩
Hello, its pleasant paragraph on the topic of media print, we all be aware of media
is a fantastic source of information.
網址設定(自訂網址) | 豬窩
Hello, its fastidious post about media print, we all know media
is a enormous source of data.