[pLog-svn] r6285 - plog/branches/lifetype-1.2
reto at devel.lifetype.net
reto at devel.lifetype.net
Mon Mar 31 16:49:41 EDT 2008
Author: reto
Date: 2008-03-31 16:49:41 -0400 (Mon, 31 Mar 2008)
New Revision: 6285
Modified:
plog/branches/lifetype-1.2/.htaccess
Log:
Added some comments to the rewrite rules and added a rule, that might be handy for users on hosts with PHP running as CGI - commented out by default, though.
feedback on this comment is welcome. I'm not sure how a growing .htaccess is affecting apache performance noticebly. I think it's negligible, but have not measured data.
Modified: plog/branches/lifetype-1.2/.htaccess
===================================================================
--- plog/branches/lifetype-1.2/.htaccess 2008-03-31 00:48:51 UTC (rev 6284)
+++ plog/branches/lifetype-1.2/.htaccess 2008-03-31 20:49:41 UTC (rev 6285)
@@ -14,7 +14,9 @@
RewriteEngine On
RewriteBase /
- # Point to the sitemap file that is local to the blog
+# Point to the sitemap file that is local to the blog
+# This is a Plugin specific rewrite rule you can safely comment out if you are
+# not using the Sitemap plugin (http://wiki.lifetype.net/index.php/Plugin_sitemap).
RewriteRule ^sitemap([0-9]+)\.gz$ tmp/sitemap/$1/sitemap.gz [L,NC]
# Permalink to the blog entry (i.e. /1_userfoo/archive/3_title-foo-bar.html)
@@ -71,6 +73,13 @@
# Static Pages (i.e /3_userfoo/demosites)
RewriteRule ^([0-9]+)_[^/]+/(.+)$ index.php?op=Template&blogId=$1&show=$2 [NC]
+# If you would like to use custom urls but ForceType or SetType directives do
+# not work on your server (e.g. PHP is running as CGI/FastCGI) you may uncomment
+# the rewrite rule below to rewrite all requests to ./blog to ./blog.php.
+# Please not note that this works only as long as you don't change the default
+# custom url patterns in your LifeType administration.
+## RewriteRule ^blog/(.+) blog.php/$1 [L,NC]
+
</IfModule>
More information about the pLog-svn
mailing list