歡迎光臨, 訪客. 請先 登入註冊一個帳號.
四月 16, 2024, 03:43:51 下午
19595 文章 在 3865 主題 由 4580 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  lifetype subdomain 設置詳細步驟 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: lifetype subdomain 設置詳細步驟  (閱讀 8276 次)
chineseblog
新手見習
*
文章: 7


檢視個人資料
« 於: 一月 31, 2008, 11:21:48 上午 »

lifetype subdomain 設置詳細步驟

這篇發表在個人blog上,轉過來,希望對有的朋友有幫助。沒有中文翻譯,請見諒。
主要的設置:
引用
   4   Adminstration General:

    subdomains_enabled = Yes
    subdomains_base_url = http://{blogdomain}
    subdomains_available_domains = chinese-blog.org
    include_blog_id_in_url - No

經過設置,我們就得到對搜索引擎友好的二級域名網址。

原文:
http://lifetype.chinese-blog.org/lifetype-blog/lifetype-1.26-subdomain-settings


    lifetype version: 1.26

    1   Let users register a Blog on my System
    The summary.php (http://www.chinese-blog.org/summary.php) within the root Folder contains all the desired Information like to register a new blog
    Add to .htaccess
    <IfModule mod_dir.c>
        DirectoryIndex summary.php index.php
    </IfModule>
   
    2   when subdomains are enabled, LifeType is trying to load whose user or title is "www" and if it doesn't exist, it will show an error.
    The way to get around this limitation is via Apache's mod_rewrite:
   
    # For Redirecting domains like www.myblog.mysite.com--> myblog.irxcom.com
    RewriteCond %{HTTP_HOST} ^www\.(.*)\.chinese\-blog\.org$ [NC]
    RewriteRule ^.*$ http://%1.chinese-blog.org [R=301,L]

    #For Redirecting www.irxblog.com --> www.mysite.com/summary.php
    #For Redirecting irxblog.com --> www.mysite.com/summary.php
    RewriteCond %{HTTP_HOST} ^chinese-blog\.org$ [NC,OR]
    RewriteCond %{HTTP_HOST} ^www\.chinese\-blog\.org$ [NC]
    RewriteCond %{REQUEST_URI} ^/$ [NC]
    RewriteRule ^.*$ http://www.chinese-blog.org/summary.php [R=301,L]
   
   
    3   Administration URLs:
   
    
    permalink_format
    default: /blog/{blogname}/{catname}/{year}/{month}/{day}/{postname}$
    changed to :
    /{catname}/{postname}$

    category_link_format :
    default: /blog/{blogname}/{catname}$
    changed to :/{catname}$
   
    blog_link_format :
    default : /blog/{blogname}$
    changed to : $
   
   
    archive_link_format :
    default: /blog/{blogname}/archives/{year}/?{month}/?{day}
    changed to : /{blogid}/archives/{year}/?{month}/?{day}?
   
    user_posts_link_format :
    default : /blog/{blogname}/user/{username}$
    changed to : /{blogid}/user/{username}$
   
    post_trackbacks_link_format :
    default : /blog/{blogname}/post/trackbacks/{postname}$
    changed to : /{blogid}/trackbacks/{postname}$
   
    template_link_format :
    default : /blog/{blogname}/content/{templatename}$
    changed to : /{blogid}/content/{templatename}$
   
    album_link_format :
    default : /blog/{blogname}/album/{albumname}$
    changed : /{blogid}/albums/{albumname}$
   
    resource_link_format :
    default : /blog/{blogname}/resource/{albumname}/{resourcename}$
    changed to : /resource/{albumname}/{resourcename}$
   
   
    page_suffix_format :
    default : /pages/{page}$

    4   Adminstration General:

    subdomains_enabled = Yes
    subdomains_base_url = http://{blogdomain}
    subdomains_available_domains = chinese-blog.org
    include_blog_id_in_url - No
   
    5   configure "Search Engine friendly" URLs
   
    This feature only works on Apache servers and requires that .htaccess files are allowed. If this is the case, make sure that *ForceType* and *ErrorDocument* directives can be used within .htaccess files, as those two directives are the ones upon which the technique is built.

    On some Web Hosts, if PHP is running as CGI, ForceType may not be supported. In your .htaccess file replace all instances of:

    ForceType application/x-httpd-php
    with:

    SetHandler application/x-httpd-php
   
    Jan 28, 2008
« 最後編輯時間: 二月 01, 2008, 04:55:37 下午 由 chineseblog » 已記錄
bigjj
新手見習
*
文章: 36


檢視個人資料
« 回覆文章 #1 於: 二月 02, 2008, 11:30:48 上午 »

嗯,俺就是这样的。
已記錄

頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  lifetype subdomain 設置詳細步驟 « 上篇主題 下篇主題 »
    前往: