[New Templates] SEO friendly templates for LifeType 1.2x

lifetype subdomain settinngs

| | | Trackbacks (0)

lifetype subdomain settinngs

    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}?
    or : /{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}/album/{albumname}$
   
    resource_link_format :
    default : /blog/{blogname}/resource/{albumname}/{resourcename}$
    changed to : /resource/{albumname}/{resourcename}$
   
   
    page_suffix_format :
    default :  /page/{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
   
    see also:
    http://wiki.lifetype.net/index.php/Custom_URLs#Examples
   
    Jan 28, 2008

don't use multi locale files for lifetype blogging platform

    lifetype version: 1.26

    When click "Blog Settings" and "Site Locales", I get is a blank page with nothing from view source, but other administration operate works fine.
   
    first, I install lifetype 1.26 at http://www.chinese-blog.org with UTF-8 database setting. defalut blog locale is zh_CN. first blog is http://lifetype.chinese-blog.org  , locale is zh_CN
    I design "Seo friendly templates" for lifetype ( find here http://forums.lifetype.net/viewtopic.php?t=8769 )
    every thing seems OK.
   
    Then, I created second blog, http://official.chinese-blog.org with en_UK locale, some words seems broken, so I open locale\locale_en_UK.php, replace:
    $messages['encoding'] = 'iso-8859-1';
   
    with:
    $messages['encoding'] = 'utf-8';
   
    saved as utf8 encoding, upload to server ,then I can't edit "Blog Settings" and "Site Locales", http://lifetype.chinese-blog.org/admin.php?op=blogSettings is blank.
    But other operate seems fine.
   
    I tried but have not luck:
  
    1 login PHPMyAdmin, open lt_blogs, replace:
    s:5:"en_US";
    with:
    s:5:"zh_CN";
   
   
    2 open php.ini
   
    default:
    memory_limit=16M
    changed to:
    memory_limit=32M
   
    3  disable hiddeninput pluging, mv plugins/hiddeninput ../hiddeninput
   
    4  remove tmp/*
   
    5  restore locale/locale_en_UK.php
   
    6  reupload admin.php
   
    7   vi  /var/log/httpd/chinese-blog.org_error_log get error log
   
    [Wed Jan 30 02:12:06 2008] [error] [client 60...] PHP Notice:  Undefined index:  flerror in /home/chineseblogs/public_html/class/net/xmlrpcclient.class.php on line 57, referer: http://lifetype.chinese-blog.org/admin.php?op=newPost
    [Wed Jan 30 02:12:27 2008] [error] [client 60...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132, referer: http://lifetype.chinese-blog.org/
    [Wed Jan 30 02:12:27 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
    [Wed Jan 30 02:12:29 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
    [Wed Jan 30 02:12:30 2008] [error] [client 72.13...] File does not exist: /home/chineseblogs/public_html/lifetype-blog
    [Wed Jan 30 02:12:30 2008] [error] [client 72.13...] PHP Notice:  Undefined variable: defaultFiltersRegistered in /home/chineseblogs/public_html/class/security/pipeline.class.php on line 132
    [Wed Jan 30 02:12:32 2008] [error] [client 66.249...] File does not exist: /home/chineseblogs/public_html/robots.txt   
       
   
    blogs:
    http://lifetype.chinese-blog.org
    http://official.chinese-blog.org
       
    find / -name *log
   
    Jan 31, 2008
   
    resolvent (Feb 2, 2008):
    1. remove all remote locale files.    
    2. open locale\locale_en_UK.php with DreamWeaver
    find $messages['encoding'] = 'iso-8859-1';
    replace with:
    $messages['encoding'] = 'utf-8';
    Set page properties: utf8 encoding, no bom.
   
    Upload locale\locale_en_UK.php and locale\admin\locale_en_UK.php
   
    Don't use multi locale file for lifetype blogging platform.
    Feb 2, 2008

«Previous   1 2 3 4 5 6 7  Next»