Update of /cvsroot/php-blog/serendipity/include/tpl
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19351/include/tpl
Modified Files:
htaccess_cgi_rewrite.tpl htaccess_rewrite.tpl
Log Message:
Pretty URLs for CSS output, hopefully exactly as Tom imagined.
I'm going to tweak IE styles now, so I needed the PNG behavior plugin stuff.
Also fix the PAT_AUTHORS into the htaccess template and properly move the
"search" pretty URL code above matching index.php so that it works on
hosts without rewriting.
Index: htaccess_rewrite.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/tpl/htaccess_rewrite.tpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- htaccess_rewrite.tpl 10 Jan 2005 13:12:56 -0000 1.5
+++ htaccess_rewrite.tpl 11 Jan 2005 12:53:29 -0000 1.6
@@ -19,6 +19,8 @@
RewriteRule ^{PAT_FEED} rss.php?file=$1&ext=$2
RewriteRule ^{PAT_PLUGIN} {indexFile}?url=plugin/$1 [L,QSA]
RewriteRule ^{PAT_SEARCH} {indexFile}?url=/{PATH_SEARCH}/$1 [L,QSA]
+RewriteRule ^{PAT_CSS} {indexFile}?url=/{PATH_CSS}/$1 [L,QSA]
+RewriteRule ^{PAT_AUTHORS} {indexFile}?url=/{PATH_AUTHORS}/$1 [L,QSA]
RewriteRule ^index\.(html?|php.?) {indexFile}?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]
Index: htaccess_cgi_rewrite.tpl
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/tpl/htaccess_cgi_rewrite.tpl,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- htaccess_cgi_rewrite.tpl 10 Jan 2005 13:12:56 -0000 1.5
+++ htaccess_cgi_rewrite.tpl 11 Jan 2005 12:53:29 -0000 1.6
@@ -17,6 +17,8 @@
RewriteRule ^{PAT_FEED} rss.php?file=$1&ext=$2
RewriteRule ^{PAT_PLUGIN} {indexFile}?url=plugin/$1 [L,QSA]
RewriteRule ^{PAT_SEARCH} {indexFile}?url=/{PATH_SEARCH}/$1 [L,QSA]
+RewriteRule ^{PAT_CSS} {indexFile}?url=/{PATH_CSS}/$1 [L,QSA]
+RewriteRule ^{PAT_AUTHORS} {indexFile}?url=/{PATH_AUTHORS}/$1 [L,QSA]
RewriteRule ^index\.(html?|php.?) {indexFile}?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) {indexFile}?url=/$1 [L,QSA]
|