<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
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:slash="http://purl.org/rss/1.0/modules/slash/"
><channel><title>David Walsh :: Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞. &#187; Apache / Server</title> <atom:link href="http://davidwalsh.name/tutorials/apache-server/feed" rel="self" type="application/rss+xml" /><link>http://davidwalsh.name</link> <description>Legendary scribbles about JavaScript, HTML5, AJAX, PHP, CSS, and ∞.</description> <lastBuildDate>Thu, 02 Sep 2010 03:13:15 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Fix WordPress CRONs on Media Temple (dv)&#160;Servers</title><link>http://davidwalsh.name/wordpress-crons</link> <comments>http://davidwalsh.name/wordpress-crons#comments</comments> <pubDate>Thu, 12 Nov 2009 13:40:24 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[Hosting / Domain]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4125</guid> <description><![CDATA[When I switched from Dreamhost shared hosting to Media Temple (dv) server hosting, I had a hell of a time trying to figure out why CRONs weren&#8217;t working correctly on the website. I had database backups being sent via CRON jobs so making sure CRONs were working was imperative. What&#8217;s great is that the way [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/wordpress-crons">Fix WordPress CRONs on Media Temple (dv)&nbsp;Servers</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/backup-mysql-database-php' rel='bookmark' title='Permanent Link: Backup Your MySQL Database Using&nbsp;PHP'>Backup Your MySQL Database Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/rules-audio-video-media' rel='bookmark' title='Permanent Link: 5 Rules For Using Audio/Video Media on Your&nbsp;Site'>5 Rules For Using Audio/Video Media on Your&nbsp;Site</a></li><li><a
href='http://davidwalsh.name/combine-css-media-styles-file' rel='bookmark' title='Permanent Link: Combine Your CSS Media Styles Into One&nbsp;File'>Combine Your CSS Media Styles Into One&nbsp;File</a></li><li><a
href='http://davidwalsh.name/mootools-style-media' rel='bookmark' title='Permanent Link: MooTools: Set Style Per&nbsp;Media'>MooTools: Set Style Per&nbsp;Media</a></li></ol>]]></description> <content:encoded><![CDATA[<p>When I switched from Dreamhost shared hosting to Media Temple (dv) server hosting, I had a hell of a time trying to figure out why CRONs weren&#8217;t working correctly on the website.  I had database backups being sent via CRON jobs so making sure CRONs were working was imperative.  What&#8217;s great is that the way to make these WordPress CRONs work was by&#8230;setting up a CRON.</p><p> To get things working, you should:</p><ol><li>Log into your Media Temple (dv) control panel.</li><li>Navigate to the domain and click the &#8220;Crontab&#8221; icon.</li><li>Click &#8220;Schedule a Task&#8221;</li><li>Configure the time and frequency of the CRON to any way you&#8217;d like.</li><li><strong>Set the &#8220;command&#8221; value to:</strong><pre class="shell">wget http://12.23.56.78/wp-cron.php</pre></li><li>Replace the fake IP in the command above with the IP address of your website.</li></ol><p>That&#8217;s all!  Hitting the <span
class="file">wp-cron.php</span> file with the CRON will ensure you database backups and other scheduled tasks will run at proper intervals!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/wordpress-crons">Fix WordPress CRONs on Media Temple (dv)&nbsp;Servers</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/backup-mysql-database-php' rel='bookmark' title='Permanent Link: Backup Your MySQL Database Using&nbsp;PHP'>Backup Your MySQL Database Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/rules-audio-video-media' rel='bookmark' title='Permanent Link: 5 Rules For Using Audio/Video Media on Your&nbsp;Site'>5 Rules For Using Audio/Video Media on Your&nbsp;Site</a></li><li><a
href='http://davidwalsh.name/combine-css-media-styles-file' rel='bookmark' title='Permanent Link: Combine Your CSS Media Styles Into One&nbsp;File'>Combine Your CSS Media Styles Into One&nbsp;File</a></li><li><a
href='http://davidwalsh.name/mootools-style-media' rel='bookmark' title='Permanent Link: MooTools: Set Style Per&nbsp;Media'>MooTools: Set Style Per&nbsp;Media</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/wordpress-crons/feed</wfw:commentRss> <slash:comments>14</slash:comments> </item> <item><title>Fixing mod_rewrite and .htaccess on GoDaddy&#160;Hosting</title><link>http://davidwalsh.name/mod_rewrite-htaccess-godaddy</link> <comments>http://davidwalsh.name/mod_rewrite-htaccess-godaddy#comments</comments> <pubDate>Thu, 05 Nov 2009 13:24:52 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[Hosting / Domain]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=4119</guid> <description><![CDATA[I recently launched a new website on GoDaddy shared hosting. The website required mod_rewrite for SEO-friendly URLs. GoDaddy provides mod_rewrite but every time I tried to hit a two-deep URL, I would get a 404 error. Here&#8217;s what I had: # Mod Rewrite Options +FollowSymLinks RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/mod_rewrite-htaccess-godaddy">Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/check-module-presence-htaccess' rel='bookmark' title='Permanent Link: Check For Module Presence in&nbsp;.htaccess'>Check For Module Presence in&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/godaddy-hosting-curl' rel='bookmark' title='Permanent Link: GoDaddy Hosting Tip &#8211; Using CURL On GoDaddy Shared&nbsp;Hosting'>GoDaddy Hosting Tip &#8211; Using CURL On GoDaddy Shared&nbsp;Hosting</a></li><li><a
href='http://davidwalsh.name/prevent-image-hotlinking' rel='bookmark' title='Permanent Link: Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite'>Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite</a></li><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/no-www-using-htaccess-file' rel='bookmark' title='Permanent Link: No WWW Using&nbsp;.htaccess'>No WWW Using&nbsp;.htaccess</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I recently launched a new website on GoDaddy shared hosting.  The website required mod_rewrite for SEO-friendly URLs.  GoDaddy provides mod_rewrite but every time I tried to hit a two-deep URL, I would get a 404 error.  Here&#8217;s what I had:</p><pre class="htaccess"># Mod Rewrite
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]</pre><p>The fix to this problem was to add the following directive before my mod_rewrite directives:</p><pre class="htaccess">#Fix Rewrite
Options -Multiviews</pre><p>Tada!  The URLs began working and the website&#8217;s SEO has taken off!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/mod_rewrite-htaccess-godaddy">Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/check-module-presence-htaccess' rel='bookmark' title='Permanent Link: Check For Module Presence in&nbsp;.htaccess'>Check For Module Presence in&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/godaddy-hosting-curl' rel='bookmark' title='Permanent Link: GoDaddy Hosting Tip &#8211; Using CURL On GoDaddy Shared&nbsp;Hosting'>GoDaddy Hosting Tip &#8211; Using CURL On GoDaddy Shared&nbsp;Hosting</a></li><li><a
href='http://davidwalsh.name/prevent-image-hotlinking' rel='bookmark' title='Permanent Link: Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite'>Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite</a></li><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/no-www-using-htaccess-file' rel='bookmark' title='Permanent Link: No WWW Using&nbsp;.htaccess'>No WWW Using&nbsp;.htaccess</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/mod_rewrite-htaccess-godaddy/feed</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Use FURL to Retrieve Website&#160;Headers</title><link>http://davidwalsh.name/furl-retrieve-website-headers</link> <comments>http://davidwalsh.name/furl-retrieve-website-headers#comments</comments> <pubDate>Fri, 26 Jun 2009 12:39:26 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[Shell]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=2990</guid> <description><![CDATA[It&#8217;s important to know what headers your website and its files are communicating. For example, if your website is providing a 404 status, you&#8217;re probably streaking toward your computer to fix the problem. Using the FURL library, you may retrieve website headers from the command line. The Shell&#160;Script furl http://davidwalsh.name Simple and quick &#8212; just [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/furl-retrieve-website-headers">Use FURL to Retrieve Website&nbsp;Headers</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/php-header-mime' rel='bookmark' title='Permanent Link: PHP Headers and Popular Mime&nbsp;Types'>PHP Headers and Popular Mime&nbsp;Types</a></li><li><a
href='http://davidwalsh.name/introducing-band-website-template' rel='bookmark' title='Permanent Link: Introducing Band Website Template &#8211; Get a Website That Rocks Like&nbsp;You!'>Introducing Band Website Template &#8211; Get a Website That Rocks Like&nbsp;You!</a></li><li><a
href='http://davidwalsh.name/cygwin-dig-dns-records' rel='bookmark' title='Permanent Link: Using Cygwin&#8217;s dig To Retrieve DNS&nbsp;Records'>Using Cygwin&#8217;s dig To Retrieve DNS&nbsp;Records</a></li><li><a
href='http://davidwalsh.name/php-google-analytics' rel='bookmark' title='Permanent Link: Retrieve Google Analytics Visits and PageViews with&nbsp;PHP'>Retrieve Google Analytics Visits and PageViews with&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/optimizing-content-print-css' rel='bookmark' title='Permanent Link: Optimizing Your Website Content For Print Using&nbsp;CSS'>Optimizing Your Website Content For Print Using&nbsp;CSS</a></li></ol>]]></description> <content:encoded><![CDATA[<p>It&#8217;s important to know what headers your website and its files are communicating.  For example, if your website is providing a 404 status, you&#8217;re probably streaking toward your computer to fix the problem.  Using the FURL library, you may retrieve website headers from the command line.</p><h2>The Shell&nbsp;Script</h2><pre class="shell">
furl http://davidwalsh.name
</pre><p>Simple and quick &#8212; just like every shell directive.</p><h2>The Sample&nbsp;Response</h2><pre class="shell">
HTTP/1.1 200 OK
Date: Thu, 25 Jun 2009 01:50:50 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.6
X-Pingback: http://davidwalsh.name/xmlrpc.php
Cache-Control: max-age=1, private, must-revalidate
Expires: Thu, 25 Jun 2009 01:50:51 GMT
Vary: Accept-Encoding
Connection: close
Content-Type: text/html; charset=UTF-8
</pre><p>Don&#8217;t have FURL?  Install it by scripting this:</p><pre class="shell">
sudo port install furl
</pre><p>How is this useful?  I would use this to periodically (cron) check my website to make sure it was up.  What would you use this for?</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/furl-retrieve-website-headers">Use FURL to Retrieve Website&nbsp;Headers</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/php-header-mime' rel='bookmark' title='Permanent Link: PHP Headers and Popular Mime&nbsp;Types'>PHP Headers and Popular Mime&nbsp;Types</a></li><li><a
href='http://davidwalsh.name/introducing-band-website-template' rel='bookmark' title='Permanent Link: Introducing Band Website Template &#8211; Get a Website That Rocks Like&nbsp;You!'>Introducing Band Website Template &#8211; Get a Website That Rocks Like&nbsp;You!</a></li><li><a
href='http://davidwalsh.name/cygwin-dig-dns-records' rel='bookmark' title='Permanent Link: Using Cygwin&#8217;s dig To Retrieve DNS&nbsp;Records'>Using Cygwin&#8217;s dig To Retrieve DNS&nbsp;Records</a></li><li><a
href='http://davidwalsh.name/php-google-analytics' rel='bookmark' title='Permanent Link: Retrieve Google Analytics Visits and PageViews with&nbsp;PHP'>Retrieve Google Analytics Visits and PageViews with&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/optimizing-content-print-css' rel='bookmark' title='Permanent Link: Optimizing Your Website Content For Print Using&nbsp;CSS'>Optimizing Your Website Content For Print Using&nbsp;CSS</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/furl-retrieve-website-headers/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>XAMPP Lite, Windows Vista, and&#160;php5apache2_2.dll</title><link>http://davidwalsh.name/xampp-lite-windows-vista-php5apache22dll</link> <comments>http://davidwalsh.name/xampp-lite-windows-vista-php5apache22dll#comments</comments> <pubDate>Fri, 22 May 2009 13:06:21 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Apache / Server]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=2384</guid> <description><![CDATA[I recently ran into a nightmare when needing to use my father&#8217;s laptop for development.  My XAMMP Lite USB install, which worked perfectly on my Windows XP desktop, was giving the following error when trying to start Apache: apache.exe: Syntax error on line 477 of E:/xampplite/apache/conf/httpd.conf: Syntax error on line 7 of E:/xampplite/apache/conf/extra/httpd-xampp.conf: Cannot load [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/xampp-lite-windows-vista-php5apache22dll">XAMPP Lite, Windows Vista, and&nbsp;php5apache2_2.dll</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/xampp-apache-skype-issue' rel='bookmark' title='Permanent Link: The XAMPP, Apache, and Skype&nbsp;Issue'>The XAMPP, Apache, and Skype&nbsp;Issue</a></li><li><a
href='http://davidwalsh.name/override-windows-vista-xp-themed-buttons-scrollbars-meta-tag' rel='bookmark' title='Permanent Link: Override Vista and XP&#8217;s Themed Buttons and Scrollbars Using a META&nbsp;Tag'>Override Vista and XP&#8217;s Themed Buttons and Scrollbars Using a META&nbsp;Tag</a></li><li><a
href='http://davidwalsh.name/macbook' rel='bookmark' title='Permanent Link: MacBook'>MacBook</a></li><li><a
href='http://davidwalsh.name/python-eggs' rel='bookmark' title='Permanent Link: Fixing Python&#8217;s &#8220;Python Eggs&#8221;&nbsp;Error'>Fixing Python&#8217;s &#8220;Python Eggs&#8221;&nbsp;Error</a></li><li><a
href='http://davidwalsh.name/predictions-2010' rel='bookmark' title='Permanent Link: Bold Web Predictions for&nbsp;2010'>Bold Web Predictions for&nbsp;2010</a></li></ol>]]></description> <content:encoded><![CDATA[<p>I recently ran into a nightmare when needing to use my father&#8217;s laptop for development.  My XAMMP Lite USB install, which worked perfectly on my Windows XP desktop, was giving the following error when trying to start Apache:</p><pre class="bash">
apache.exe: Syntax error on line 477 of E:/xampplite/apache/conf/httpd.conf: 
Syntax error on line 7 of E:/xampplite/apache/conf/extra/httpd-xampp.conf: 
Cannot load E:/xampplite/apache/bin/php5apache2_2.dll into server: The specified module
could not be found.
</pre><p>After 20 minutes of frustration, I finally found the golden solution.  I needed to <a
href="http://www.dll-files.com/dllindex/dll-files.shtml?msvcr71">download</a> and place <span
class="file">msvcr71.dll</span> in my <span
class="file">\xampplite\apache\bin</span> folder.  Apparently it&#8217;s a Microsoft runtime file that Vista doesn&#8217;t have.  Disaster averted!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/xampp-lite-windows-vista-php5apache22dll">XAMPP Lite, Windows Vista, and&nbsp;php5apache2_2.dll</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/xampp-apache-skype-issue' rel='bookmark' title='Permanent Link: The XAMPP, Apache, and Skype&nbsp;Issue'>The XAMPP, Apache, and Skype&nbsp;Issue</a></li><li><a
href='http://davidwalsh.name/override-windows-vista-xp-themed-buttons-scrollbars-meta-tag' rel='bookmark' title='Permanent Link: Override Vista and XP&#8217;s Themed Buttons and Scrollbars Using a META&nbsp;Tag'>Override Vista and XP&#8217;s Themed Buttons and Scrollbars Using a META&nbsp;Tag</a></li><li><a
href='http://davidwalsh.name/macbook' rel='bookmark' title='Permanent Link: MacBook'>MacBook</a></li><li><a
href='http://davidwalsh.name/python-eggs' rel='bookmark' title='Permanent Link: Fixing Python&#8217;s &#8220;Python Eggs&#8221;&nbsp;Error'>Fixing Python&#8217;s &#8220;Python Eggs&#8221;&nbsp;Error</a></li><li><a
href='http://davidwalsh.name/predictions-2010' rel='bookmark' title='Permanent Link: Bold Web Predictions for&nbsp;2010'>Bold Web Predictions for&nbsp;2010</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/xampp-lite-windows-vista-php5apache22dll/feed</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Set php.ini Values Using&#160;.htaccess</title><link>http://davidwalsh.name/php-values-htaccess</link> <comments>http://davidwalsh.name/php-values-htaccess#comments</comments> <pubDate>Tue, 04 Nov 2008 13:39:31 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=672</guid> <description><![CDATA[Did you know that you can set php.ini values right inside the .htaccess file? It&#8217;s actually very easy. The .htaccess&#160;Code #format php_value setting_name setting_value #example php_value upload_max_filesize 10M Of course you could simply place these in the .htaccess file, but .htaccess is a viable alternative if your host doesn&#8217;t allow you to touch the php.ini [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/php-values-htaccess">Set php.ini Values Using&nbsp;.htaccess</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess' rel='bookmark' title='Permanent Link: Hide Your .htaccess Settings Using …&nbsp;.htaccess'>Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/script-style-exclusive-add-custom-values-wordpress-rss-feed' rel='bookmark' title='Permanent Link: Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed'>Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed</a></li><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/directory-index-homepage-htaccess' rel='bookmark' title='Permanent Link: Set Your Directory Index (Homepage) Using&nbsp;.htaccess'>Set Your Directory Index (Homepage) Using&nbsp;.htaccess</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Did you know that you can set php.ini values right inside the <span
class="file">.htaccess</span> file?  It&#8217;s actually very easy.</p><h2>The .htaccess&nbsp;Code</h2><pre  class="js">
#format
php_value setting_name setting_value

#example
php_value  upload_max_filesize  10M
</pre><p>Of course you could simply place these in the <span
class="file">.htaccess</span> file, but <span
class="file">.htaccess</span> is a viable alternative if your host doesn&#8217;t allow you to touch the <span
class="file">php.ini</span> file.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/php-values-htaccess">Set php.ini Values Using&nbsp;.htaccess</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess' rel='bookmark' title='Permanent Link: Hide Your .htaccess Settings Using …&nbsp;.htaccess'>Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/script-style-exclusive-add-custom-values-wordpress-rss-feed' rel='bookmark' title='Permanent Link: Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed'>Script &#038; Style Exclusive: Add Custom Values To Your WordPress RSS&nbsp;Feed</a></li><li><a
href='http://davidwalsh.name/wordpress-htaccess-file-is-genius' rel='bookmark' title='Permanent Link: WordPress&#8217; .htaccess File Is&nbsp;Genius'>WordPress&#8217; .htaccess File Is&nbsp;Genius</a></li><li><a
href='http://davidwalsh.name/directory-index-homepage-htaccess' rel='bookmark' title='Permanent Link: Set Your Directory Index (Homepage) Using&nbsp;.htaccess'>Set Your Directory Index (Homepage) Using&nbsp;.htaccess</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/php-values-htaccess/feed</wfw:commentRss> <slash:comments>15</slash:comments> </item> <item><title>Increase PHP&#8217;s File Upload Limit Using&#160;php.ini</title><link>http://davidwalsh.name/increase-php-file-upload-limit-using-php-ini</link> <comments>http://davidwalsh.name/increase-php-file-upload-limit-using-php-ini#comments</comments> <pubDate>Thu, 03 Jul 2008 12:01:19 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[PHP]]></category><guid
isPermaLink="false">http://davidwalsh.name/?p=307</guid> <description><![CDATA[The file upload size limit is usually set pretty low by shared hosting providers. Why? To save bandwidth, keep the server moving quickly, and think about it &#8212; how many customers really need a large upload limit? If you do need to increase the maximum upload limit, all you need to do is place the [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/increase-php-file-upload-limit-using-php-ini">Increase PHP&#8217;s File Upload Limit Using&nbsp;php.ini</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/multiple-file-upload' rel='bookmark' title='Permanent Link: Multiple File Upload&nbsp;Input'>Multiple File Upload&nbsp;Input</a></li><li><a
href='http://davidwalsh.name/increase-php-script-execution-time-limit-ini_set' rel='bookmark' title='Permanent Link: Increase PHP Script Execution Time Limit Using&nbsp;ini_set()'>Increase PHP Script Execution Time Limit Using&nbsp;ini_set()</a></li><li><a
href='http://davidwalsh.name/basic-file-uploading-php' rel='bookmark' title='Permanent Link: Basic File Uploading Using&nbsp;PHP'>Basic File Uploading Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/increase-php-memory-limit-ini_set' rel='bookmark' title='Permanent Link: Increase PHP Memory Allowance Using&nbsp;ini_set()'>Increase PHP Memory Allowance Using&nbsp;ini_set()</a></li><li><a
href='http://davidwalsh.name/php-function-get-file-extension-string' rel='bookmark' title='Permanent Link: PHP Function To Get A File Extension From A&nbsp;String'>PHP Function To Get A File Extension From A&nbsp;String</a></li></ol>]]></description> <content:encoded><![CDATA[<p>The file upload size limit is usually set pretty low by shared hosting providers.  Why?  To save bandwidth, keep the server moving quickly, and think about it &#8212; how many customers really need a large upload limit?  If you do need to increase the maximum upload limit, all you need to do is place the following code snippet in your <span
class="file">php.ini</span> file:</p><pre  class="js">
file_uploads = On
upload_max_filesize = 10M //needs to be in {x}M format
</pre><p>Note that not all hosting providers allow customers to increase the file upload limit.  Take that into consideration when purchasing your customer&#8217;s web hosting.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/increase-php-file-upload-limit-using-php-ini">Increase PHP&#8217;s File Upload Limit Using&nbsp;php.ini</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/multiple-file-upload' rel='bookmark' title='Permanent Link: Multiple File Upload&nbsp;Input'>Multiple File Upload&nbsp;Input</a></li><li><a
href='http://davidwalsh.name/increase-php-script-execution-time-limit-ini_set' rel='bookmark' title='Permanent Link: Increase PHP Script Execution Time Limit Using&nbsp;ini_set()'>Increase PHP Script Execution Time Limit Using&nbsp;ini_set()</a></li><li><a
href='http://davidwalsh.name/basic-file-uploading-php' rel='bookmark' title='Permanent Link: Basic File Uploading Using&nbsp;PHP'>Basic File Uploading Using&nbsp;PHP</a></li><li><a
href='http://davidwalsh.name/increase-php-memory-limit-ini_set' rel='bookmark' title='Permanent Link: Increase PHP Memory Allowance Using&nbsp;ini_set()'>Increase PHP Memory Allowance Using&nbsp;ini_set()</a></li><li><a
href='http://davidwalsh.name/php-function-get-file-extension-string' rel='bookmark' title='Permanent Link: PHP Function To Get A File Extension From A&nbsp;String'>PHP Function To Get A File Extension From A&nbsp;String</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/increase-php-file-upload-limit-using-php-ini/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&#160;Website</title><link>http://davidwalsh.name/htaccess-security-allow-block-ips</link> <comments>http://davidwalsh.name/htaccess-security-allow-block-ips#comments</comments> <pubDate>Fri, 12 Oct 2007 12:27:47 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[Security]]></category><guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-allow-or-block-specific-ips-from-your-website/</guid> <description><![CDATA[The more I use the .htaccess file the more I appreciate its value. My next valuable lesson in .htaccess security deals with allowing and blocking access to a web server from a specific IP address. Reasons for doing this include: Keeping a known hacker/bot from accessing your website Allowing only your IP address to view [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/htaccess-security-allow-block-ips">Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers'>Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers</a></li><li><a
href='http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess' rel='bookmark' title='Permanent Link: Hide Your .htaccess Settings Using …&nbsp;.htaccess'>Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-maintenance-page-redirect' rel='bookmark' title='Permanent Link: .htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect'>.htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect</a></li><li><a
href='http://davidwalsh.name/prevent-directory-listings-with-htaccess' rel='bookmark' title='Permanent Link: Prevent Directory Listings With&nbsp;.htaccess'>Prevent Directory Listings With&nbsp;.htaccess</a></li></ol>]]></description> <content:encoded><![CDATA[<p>The more I use the <span
class="file">.htaccess</span> file the more I appreciate its value.  My next valuable lesson in <span
class="file">.htaccess</span> security deals with allowing and blocking access to a web server from a specific IP address.  Reasons for doing this include:</p><ul><li>Keeping a known hacker/bot from accessing your website</li><li>Allowing only your IP address to view your website (while it&#8217;s in development, for example)</li><li>Allowing only trusted persons into your website (if your users&#8217; IP&#8217;s stay the same, that&#8217;s more secure than user/pass)</li><li>Disallowing persons from a specified country <em>(or any known location)</em> from your website</li><li>Banning persons from your website</li></ul><h2>The&nbsp;Code</h2><p><pre  class="js">&lt;limit GET POST PUT&gt;
order deny,allow
deny from 202.57.377.22
deny from 8.77.88.33
allow from all
&lt;/limit&gt;</pre><p>The above code bans the two IP addresses from accessing the website.</p><p>Chances are you wont do this often.  I do, however, believe that you should use this for your development server.   Allowing only LAN users to access your development server prevents a search engine or hacker from getting to your website:</p><pre  class="js">&lt;limit GET POST PUT&gt;
order deny,allow
deny from all
allow from 192.168.0.0/24
&lt;/limit&gt;</pre><p>Do you have any other reasons to ban IP addresses?  Have any code to share?  Please do!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/htaccess-security-allow-block-ips">Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers'>Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers</a></li><li><a
href='http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess' rel='bookmark' title='Permanent Link: Hide Your .htaccess Settings Using …&nbsp;.htaccess'>Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-maintenance-page-redirect' rel='bookmark' title='Permanent Link: .htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect'>.htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect</a></li><li><a
href='http://davidwalsh.name/prevent-directory-listings-with-htaccess' rel='bookmark' title='Permanent Link: Prevent Directory Listings With&nbsp;.htaccess'>Prevent Directory Listings With&nbsp;.htaccess</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/htaccess-security-allow-block-ips/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Advanced .htaccess Security &#8211; Block Unwanted&#160;Referrers</title><link>http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers</link> <comments>http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers#comments</comments> <pubDate>Fri, 12 Oct 2007 12:26:34 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache / Server]]></category> <category><![CDATA[Security]]></category><guid
isPermaLink="false">http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers/</guid> <description><![CDATA[For some bloggers and web developers, Digg can be a huge boost in traffic and thus a huge bust in ad revenue. Unfortunately, the Digg Effect can kill a website&#8217;s bandwidth and get the website shut down. Wouldn&#8217;t it be great if a weary web developer could prevent his site from being shut down by [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers">Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/prevent-image-hotlinking' rel='bookmark' title='Permanent Link: Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite'>Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite</a></li><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-maintenance-page-redirect' rel='bookmark' title='Permanent Link: .htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect'>.htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect</a></li><li><a
href='http://davidwalsh.name/mod_rewrite-htaccess-godaddy' rel='bookmark' title='Permanent Link: Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting'>Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting</a></li></ol>]]></description> <content:encoded><![CDATA[<p>For some bloggers and web developers, Digg can be a huge boost in traffic and thus a huge bust in ad revenue.  Unfortunately, the Digg Effect can kill a website&#8217;s bandwidth and get the website shut down.  Wouldn&#8217;t it be great if a weary web developer could prevent his site from being shut down by blocking users referred by Digg, at least a while?  Using a small bit of .htaccess code and mod_rewrite, the developer can do just that.</p><h2>The&nbsp;Code</h2><p><pre  class="js">RewriteEngine on
RewriteCond %{HTTP_REFERER} digg.com [NC]
RewriteRule .* - [F]</pre><p>Say good-bye to Digg Death with this small, easy-to-place snippet of code!</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers">Advanced .htaccess Security &#8211; Block Unwanted&nbsp;Referrers</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/prevent-image-hotlinking' rel='bookmark' title='Permanent Link: Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite'>Prevent Image Hotlinking With .htaccess and&nbsp;mod_rewrite</a></li><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-maintenance-page-redirect' rel='bookmark' title='Permanent Link: .htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect'>.htaccess &#8220;Down For Maintenance&#8221; Page&nbsp;Redirect</a></li><li><a
href='http://davidwalsh.name/mod_rewrite-htaccess-godaddy' rel='bookmark' title='Permanent Link: Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting'>Fixing mod_rewrite and .htaccess on GoDaddy&nbsp;Hosting</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/advanced-htaccess-security-block-unwanted-referrers/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Advanced Branding &#8211; Give Your Pages A Custom Extension Using .htaccess&#160;SetHandler</title><link>http://davidwalsh.name/custom-page-extensions-htaccess</link> <comments>http://davidwalsh.name/custom-page-extensions-htaccess#comments</comments> <pubDate>Thu, 27 Sep 2007 12:50:02 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache / Server]]></category><guid
isPermaLink="false">http://davidwalsh.name/advanced-branding-give-your-pages-a-custom-extension-using-htaccess-sethandler/</guid> <description><![CDATA[A sign of a good website is one that does the &#8220;little things&#8221; to increase the usability or value to the user. There are other little things you can do to enhance your website, including giving your pages a custom extension.The&#160;Code&#60;FILES *.blu&#62; SetHandler application/x-httpd-php &#60;/FILES&#62; What the following code tells the server is to treat [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/custom-page-extensions-htaccess">Advanced Branding &#8211; Give Your Pages A Custom Extension Using .htaccess&nbsp;SetHandler</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/custom-404-page-tips' rel='bookmark' title='Permanent Link: Custom Error Page Tips &#8211; Designate The Pages You Hope No One&nbsp;Sees'>Custom Error Page Tips &#8211; Designate The Pages You Hope No One&nbsp;Sees</a></li><li><a
href='http://davidwalsh.name/force-secure-ssl-htaccess' rel='bookmark' title='Permanent Link: Force Secure (SSL) Pages With&nbsp;.htaccess'>Force Secure (SSL) Pages With&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/firefox-extension-template' rel='bookmark' title='Permanent Link: Firefox Extension&nbsp;Template'>Firefox Extension&nbsp;Template</a></li></ol>]]></description> <content:encoded><![CDATA[<p>A sign of a good website is one that does the &#8220;little things&#8221; to increase the usability or value to the user.  There are other little things you can do to enhance your website, including giving your pages a custom extension.</p><h2>The&nbsp;Code</h2><p><pre  class="js">&lt;FILES *.blu&gt;
  SetHandler  application/x-httpd-php
&lt;/FILES&gt;</pre><p>What the following code tells the server is to treat any file with the <span
class="file">.blu</span> extension as a PHP file, thus every <span
class="file">.blu</span> page is a PHP page.</p><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/custom-page-extensions-htaccess">Advanced Branding &#8211; Give Your Pages A Custom Extension Using .htaccess&nbsp;SetHandler</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/custom-404-page-tips' rel='bookmark' title='Permanent Link: Custom Error Page Tips &#8211; Designate The Pages You Hope No One&nbsp;Sees'>Custom Error Page Tips &#8211; Designate The Pages You Hope No One&nbsp;Sees</a></li><li><a
href='http://davidwalsh.name/force-secure-ssl-htaccess' rel='bookmark' title='Permanent Link: Force Secure (SSL) Pages With&nbsp;.htaccess'>Force Secure (SSL) Pages With&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/firefox-extension-template' rel='bookmark' title='Permanent Link: Firefox Extension&nbsp;Template'>Firefox Extension&nbsp;Template</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/custom-page-extensions-htaccess/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Hide Your .htaccess Settings Using …&#160;.htaccess</title><link>http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess</link> <comments>http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess#comments</comments> <pubDate>Thu, 27 Sep 2007 12:49:36 +0000</pubDate> <dc:creator>David Walsh</dc:creator> <category><![CDATA[.htaccess]]></category> <category><![CDATA[Apache / Server]]></category><guid
isPermaLink="false">http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess/</guid> <description><![CDATA[Your .htaccess file can hold a good amount of information about the structure of your website, some of which should not be exposed to users. These settings include mod_rewrite settings, php_flag/php_value settings, and SetHandler directives.Luckily, you can use your .htaccess file to hide your .htaccess file. Here&#8217;s how:The&#160;Code &#60;files .htaccess&#62; order allow,deny deny from all [...]<p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess">Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></p>Related posts:<ol><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/password-protect-directory-using-htaccess' rel='bookmark' title='Permanent Link: Password Protect a Directory Using&nbsp;.htaccess'>Password Protect a Directory Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/php-values-htaccess' rel='bookmark' title='Permanent Link: Set php.ini Values Using&nbsp;.htaccess'>Set php.ini Values Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/template-system-htaccess' rel='bookmark' title='Permanent Link: Quickly Set Up a Templating System Using&nbsp;.htaccess'>Quickly Set Up a Templating System Using&nbsp;.htaccess</a></li></ol>]]></description> <content:encoded><![CDATA[<p>Your <span
class="file">.htaccess</span> file can hold a good amount of information about the structure of your website, some of which should not be exposed to users.  These settings include mod_rewrite settings, php_flag/php_value settings, and SetHandler directives.</p><p>Luckily, you can use your <span
class="file">.htaccess</span> file to hide your <span
class="file">.htaccess</span> file.  Here&#8217;s how:</p><h2>The&nbsp;Code</h2><p><pre  class="js">&lt;files .htaccess&gt;
order allow,deny
deny from all
&lt;/files&gt;</pre><p><strong>Follow Me!</strong> <a
href="http://twitter.com/davidwalshblog">Twitter</a> | <a
href="http://www.facebook.com/#!/pages/David-Walsh-Blog/186644584869">Facebook</a> | <a
href="http://www.linkedin.com/in/davidjameswalsh">LinkedIn</a> | <a
href="http://mootools.net/forge/profile/davidwalsh">MooTools Forge.</a><br/><br/>Full David Walsh Blog Post: <a
href="http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess">Hide Your .htaccess Settings Using …&nbsp;.htaccess</a></p><p>Related posts:<ol><li><a
href='http://davidwalsh.name/htaccess-security-allow-block-ips' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website'>Advanced .htaccess Security &#8211; Allow or Block Specific IPs From Your&nbsp;Website</a></li><li><a
href='http://davidwalsh.name/htaccess-security-include-files' rel='bookmark' title='Permanent Link: Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess'>Advanced .htaccess Security &#8211; Block Access to Include Files Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/password-protect-directory-using-htaccess' rel='bookmark' title='Permanent Link: Password Protect a Directory Using&nbsp;.htaccess'>Password Protect a Directory Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/php-values-htaccess' rel='bookmark' title='Permanent Link: Set php.ini Values Using&nbsp;.htaccess'>Set php.ini Values Using&nbsp;.htaccess</a></li><li><a
href='http://davidwalsh.name/template-system-htaccess' rel='bookmark' title='Permanent Link: Quickly Set Up a Templating System Using&nbsp;.htaccess'>Quickly Set Up a Templating System Using&nbsp;.htaccess</a></li></ol></p>]]></content:encoded> <wfw:commentRss>http://davidwalsh.name/hide-your-htaccess-settings-using-htaccess/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 136/394 queries in 3.519 seconds using disk

Served from: davidwalsh.name @ 2010-09-02 23:12:54 -->