10 useful .htaccess snippets to have in your toolbox | CatsWhoCode.com

10 useful .htaccess snippets to have in your toolbox | CatsWhoCode.com Remove www in url For SEO reasons, you might always remove (or use) the www prefix in your urls. The following snippet will remove the www from your website url and redirect any url with the www to the non-www version. RewriteEngine On RewriteCond %{HTTP_HOST} !^your-site.com$ [NC] RewriteRule ^(.*)$ http://your-site.com/$1 […]

Ten Oddities And Secrets About JavaScript

Ten Oddities And Secrets About JavaScriptJavaScript. At once bizarre and yet beautiful, it is surely the programming language that Pablo Picasso would have invented. Null is apparently an object, an empty array is apparently equal to false, and functions are bandied around as though they were tennis balls. 1. Null is an Object 2. NaN is […]