<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:series="http://unfoldingneurons.com/"
> <channel><title>Comments on: Quickly Set Up a Templating System Using&#160;.htaccess</title> <atom:link href="http://davidwalsh.name/template-system-htaccess/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name/template-system-htaccess</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Wed, 23 May 2012 22:21:39 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <item><title>By: hvm70</title><link>http://davidwalsh.name/template-system-htaccess#comment-11265</link> <dc:creator>hvm70</dc:creator> <pubDate>Thu, 13 Aug 2009 16:56:40 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-11265</guid> <description>i like to use .htaccess like this :PDeny from allso.....!! LOL and thank you :P</description> <content:encoded><![CDATA[<p>i like to use .htaccess like this :P</p><p>Deny from all</p><p>so&#8230;..!! LOL and thank you :P</p> ]]></content:encoded> </item> <item><title>By: Brandon Hansen</title><link>http://davidwalsh.name/template-system-htaccess#comment-7848</link> <dc:creator>Brandon Hansen</dc:creator> <pubDate>Wed, 18 Feb 2009 23:20:17 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-7848</guid> <description>I really like this solution.  You could also use a constant in PHP to set the path to css files.  That would give absolute references, however, which allows people to take a look at your .css and .js files (not that that should be a bad thing)</description> <content:encoded><![CDATA[<p>I really like this solution.  You could also use a constant in PHP to set the path to css files.  That would give absolute references, however, which allows people to take a look at your .css and .js files (not that that should be a bad thing)</p> ]]></content:encoded> </item> <item><title>By: Pierre Canthelou</title><link>http://davidwalsh.name/template-system-htaccess#comment-3895</link> <dc:creator>Pierre Canthelou</dc:creator> <pubDate>Thu, 20 Nov 2008 21:53:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3895</guid> <description>Hi, don&#039;t want to break your code, but why don&#039;t you do&lt;blockquote&gt;
&lt;blockquote&gt;
RewriteRule ^(css&#124;graphics&#124;js)/(.*),([0-9])           /templates/version$1/$3/$2
&lt;/blockquote&gt;
&lt;/blockquote&gt;if you want to cntrol the theme ID&lt;blockquote&gt;
&lt;blockquote&gt;
RewriteRule ^(css&#124;graphics&#124;js)/(.*)           /templates/version2/$3/$2
&lt;/blockquote&gt;
&lt;/blockquote&gt;</description> <content:encoded><![CDATA[<p>Hi, don&#8217;t want to break your code, but why don&#8217;t you do</p><blockquote><blockquote><p> RewriteRule ^(css|graphics|js)/(.*),([0-9])           /templates/version$1/$3/$2</p></blockquote></blockquote><p>if you want to cntrol the theme ID</p><blockquote><blockquote><p> RewriteRule ^(css|graphics|js)/(.*)           /templates/version2/$3/$2</p></blockquote></blockquote> ]]></content:encoded> </item> <item><title>By: Иван</title><link>http://davidwalsh.name/template-system-htaccess#comment-3837</link> <dc:creator>Иван</dc:creator> <pubDate>Tue, 18 Nov 2008 17:09:32 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3837</guid> <description>@Dave It&#039;s possible to use &quot;alias&quot; instead of &quot;rewrite&quot;. But why would you use this approach? If it is for the sake of short code, yes it has a point.Here is a downside of this approach (from personal experience)You have v1 and v2 themes, where v1 is red and v2 is blue with v1 being the current. The themes are basically the same, just different tints. You have set the expires headers, say 30 days since the last visit, or fixed time in future (doesn&#039;t really matter). I visit your site and my browser caches one static page. In the event of changing the themes internaly (via .htaccess) before the cache expires, my browser will not bother fetching the files again, since to it they (the files) haven&#039;t changed.Or if the files are partially named the same way this might result in very very nasty nasty picture.</description> <content:encoded><![CDATA[<p>@Dave It&#8217;s possible to use &#8220;alias&#8221; instead of &#8220;rewrite&#8221;. But why would you use this approach? If it is for the sake of short code, yes it has a point.</p><p>Here is a downside of this approach (from personal experience)</p><p>You have v1 and v2 themes, where v1 is red and v2 is blue with v1 being the current. The themes are basically the same, just different tints. You have set the expires headers, say 30 days since the last visit, or fixed time in future (doesn&#8217;t really matter). I visit your site and my browser caches one static page. In the event of changing the themes internaly (via .htaccess) before the cache expires, my browser will not bother fetching the files again, since to it they (the files) haven&#8217;t changed.</p><p>Or if the files are partially named the same way this might result in very very nasty nasty picture.</p> ]]></content:encoded> </item> <item><title>By: Gaurav</title><link>http://davidwalsh.name/template-system-htaccess#comment-3828</link> <dc:creator>Gaurav</dc:creator> <pubDate>Tue, 18 Nov 2008 13:58:47 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3828</guid> <description>@Mark : Thank will try that.</description> <content:encoded><![CDATA[<p>@Mark : Thank will try that.</p> ]]></content:encoded> </item> <item><title>By: Jesus DeLaTorre</title><link>http://davidwalsh.name/template-system-htaccess#comment-3823</link> <dc:creator>Jesus DeLaTorre</dc:creator> <pubDate>Tue, 18 Nov 2008 00:37:41 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3823</guid> <description>David have you seen how netvibes does it? they do something like main.css?v=46I supposed netvibes way is to make sure the user gets the updated version of main.css and not the browser cached version they have.When I read this article&#039;s title, I thought about it in a different way. What if you want to implement a templating system such that if a user prefers a dark template, they can set some option and view the site in a dark layout as opposed to a light layout. Similiar to what forums like vbulletin do. They allow the user to choose the template they want. How would you tackle this problem?</description> <content:encoded><![CDATA[<p>David have you seen how netvibes does it? they do something like main.css?v=46</p><p>I supposed netvibes way is to make sure the user gets the updated version of main.css and not the browser cached version they have.</p><p>When I read this article&#8217;s title, I thought about it in a different way. What if you want to implement a templating system such that if a user prefers a dark template, they can set some option and view the site in a dark layout as opposed to a light layout. Similiar to what forums like vbulletin do. They allow the user to choose the template they want. How would you tackle this problem?</p> ]]></content:encoded> </item> <item><title>By: Luca</title><link>http://davidwalsh.name/template-system-htaccess#comment-3821</link> <dc:creator>Luca</dc:creator> <pubDate>Mon, 17 Nov 2008 22:27:18 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3821</guid> <description>That&#039;s a very nice idea, switching versions is always a nightmare!
Thank you</description> <content:encoded><![CDATA[<p>That&#8217;s a very nice idea, switching versions is always a nightmare!<br
/> Thank you</p> ]]></content:encoded> </item> <item><title>By: Clinton Montague</title><link>http://davidwalsh.name/template-system-htaccess#comment-3820</link> <dc:creator>Clinton Montague</dc:creator> <pubDate>Mon, 17 Nov 2008 20:12:12 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3820</guid> <description>I have used similar mod&#095;rewrite code in my projects before. I normally keep it on one line however,RewriteEngine On
RewriteRule ^(css&#124;js&#124;images)/(.*) templates/version1/$1/$2Just my preference though as sometimes we have large .htaccesses so it&#039;s a bit easier to read.I&#039;d also be interested to know if anyone has any different/better ways to do this!</description> <content:encoded><![CDATA[<p>I have used similar mod&#95;rewrite code in my projects before. I normally keep it on one line however,</p><p>RewriteEngine On<br
/> RewriteRule ^(css|js|images)/(.*) templates/version1/$1/$2</p><p>Just my preference though as sometimes we have large .htaccesses so it&#8217;s a bit easier to read.</p><p>I&#8217;d also be interested to know if anyone has any different/better ways to do this!</p> ]]></content:encoded> </item> <item><title>By: david</title><link>http://davidwalsh.name/template-system-htaccess#comment-3819</link> <dc:creator>david</dc:creator> <pubDate>Mon, 17 Nov 2008 19:50:03 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3819</guid> <description>&lt;p&gt;@Alex:  You could.  I tried Smarty once but didn&#039;t like it.&lt;/p&gt;</description> <content:encoded><![CDATA[<p>@Alex:  You could.  I tried Smarty once but didn&#8217;t like it.</p> ]]></content:encoded> </item> <item><title>By: Alex</title><link>http://davidwalsh.name/template-system-htaccess#comment-3818</link> <dc:creator>Alex</dc:creator> <pubDate>Mon, 17 Nov 2008 19:39:27 +0000</pubDate> <guid
isPermaLink="false">http://davidwalsh.name/?p=620#comment-3818</guid> <description>Why not use a 100% organic php software like smarty?</description> <content:encoded><![CDATA[<p>Why not use a 100% organic php software like smarty?</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (User agent is rejected)
Database Caching 3/7 queries in 0.007 seconds using disk: basic
Object Caching 805/805 objects using disk: basic

Served from: davidwalsh.name @ 2012-05-23 21:37:01 -->
