Ms7 Search
Google 搜尋 翻譯
calendar
« 九月 2024 »
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30            
近期文章
文章分類
網站連結
Syndicate

« | »

網址設定(自訂網址)

2007-04-29 @ 21:48 in LifeType,Moodle

lifetype 自訂網址的設定,好像有點不太好了解,也有點懶得去了解,在網上找到,比照辦理就ok

http://ms7.fhsh.tp.edu.tw/blog/index.php?blogId=1  ==> http://ms7.fhsh.tp.edu.tw/blog/root

直接打網誌管理者名稱,是不是容易記多了,修改如下

  1. 在 /etc/httpd/conf/httpd.conf 下將 /var/www/html/blog 內的  AllowOverride All ,這樣目錄下的 .htaccess 才有作用
  2. 將 .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
  3. 在全站台管控 => 網址設定 如下
    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}
  4. ok

迴響

自訂網址的問題

我的Linux是用台南縣教育網路中心所開發的B2D,我的lifetype是放在/var/www下,我找不到 /etc/httpd/conf/httpd.conf這個檔案,所以不知道去那修改AllowOverride All這個部份,
可以在詳細的告訴我嗎?謝謝。

作者 Tesi @ 12:49, 2007-11-23

B2D 的設定在 /etc/apache2/

shyong

不好意思,這裡只是我的備忘錄,所以幾乎不會看迴響,其實 /etc/httpd/conf/httpd.conf也就是 apache 的設定檔,B2D 的設定查了一下應該是在 /etc/apache2 下,你可以參考台南縣教育網路中心 http://b2ddoc.tnc.edu.tw/yh/LinuxBase/m6_server_setup.html 的網頁伺服器介紹,有詳細解說

作者 shyong @ 00:31, 2007-12-09

我只是愛你的有趣博客

我想說,你真的幫助我理解的主題 ????(????) | ??

作者 seo services vancouver @ 05:02, 2012-03-03

網址設定(自訂網址) | 豬窩

Hello, its pleasant paragraph on the topic of media print, we all be aware of media
is a fantastic source of information.

作者 web hosting companies @ 10:19, 2020-08-11

網址設定(自訂網址) | 豬窩

Hello, its fastidious post about media print, we all know media
is a enormous source of data.

作者 web hosting company @ 11:09, 2020-08-14
發表迴響
 authimage