LifeType 中文開發論壇

支援 => 安裝與設定 => 主題作者是: chineseblog 於 一月 31, 2008, 11:21:48 上午



主題: lifetype subdomain 設置詳細步驟
作者: chineseblog一月 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


主題: Re: lifetype subdomain 設置詳細步驟
作者: bigjj二月 02, 2008, 11:30:48 上午
嗯,俺就是这样的。