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
