Redirect website with WWW and without WWW using .htaccess

Redirect without WWW 

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.aviweb\.com [NC]
RewriteRule ^(.*)$$1 [L,R=301]

Redirect with WWW 

RewriteEngine on
RewriteCond %{HTTP_HOST} ^aviweb\.com [NC]
RewriteRule ^(.*)$$1 [L,R=301]


svg image file not allowing in emails

Some of emails not allowed svg files in emails find below possibilities.

SVG file in image tag src find below

Outlook 2013 – NO – YES
Yahoo! – YES
Mail (OSX) – YES
Mail (iOS) – YES
Gmail – NO
Gmail (iOS) – NO
Gmail (Android) – YES
Android – NO

For more information about SVG file in emails please find

jQuery basic things

jQuery noConflict()

Many JavaScript libraries use $ as a function or variable name, just as jQuery does. In jQuery’s case, $ is just an alias for jQuery, so all functionality is available without using $.

Difference b/w document.ready() & window.load()

$(document).ready is jQuery event that is fired when DOM is loaded, so it’s fired when the document structure is ready.

$(window).load event is fired after whole content (including css, images etc..) is loaded.


The Document Object Model (DOM) is a programming API for HTML and XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term “document” is used in the broad sense – increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents.

Simple Share buttons for Static and dynamic blogs

<a href=”<URL>&p%5Btitle%5D=<TITLE>&#8221; rel=”nofollow” target=”_blank” title=”Share on Facebook”>
<a href=”<URL>&#8221; rel=”nofollow” target=”_blank” title=”Share on Google Plus”>
Google Plus
<a href=”<TITLE>&url=<URL>&via=<TWITTER-HANDLE>&related=<TWITTER-HANDLE>&#8221; rel=”nofollow” target=”_blank” title=”Share on Twitter”>
<a href=”<URL>&title=<TITILE>&summary=<DESCRIPTION>&source=<DOMAIN>&#8221; rel=”nofollow” target=”_blank” title=”Share on LinkedIn”>
<a href=”<URL>&description=<TITLE>&#8221; rel=”nofollow” target=”_blank” title=”Share on Pinterest”>
<a href=”<URL>&name=<TITLE>&description=<DESCRIPTION>&#8221; rel=”nofollow” target=”_blank” title=”Share on Tumblr”>
<a href=”<URL>&title=<TITLE>&#8221; rel=”nofollow” target=”_blank” title=”Share on Reddit”>

Google Maps traffic layer

<style type=”text/css”>
html { height: 100%;}
body { height: 100%; margin: 0px; padding: 0px; }
#map { height: 600px; width: 600px; }

/* script call here; type=”text/javascript”

/*script start here*/
google.maps.event.addDomListener( window, ‘load’, init );

function init() {
var options = {
zoom: 7,
center: new google.maps.LatLng( 32.715738, -117.161084 ),
mapTypeId: google.maps.MapTypeId.ROADMAP,
overviewMapControl: false
var map = new google.maps.Map( document.getElementById( “map” ), options );
var traffic = new google.maps.TrafficLayer();
traffic.setMap( map );

document.getElementById( ‘b’ ),
function() {
traffic.setMap( traffic.getMap() === null ? map : null )
} );
/*script end here*/

How to create a block to show a digital clock?

function show5(){
if (!document.layers&&!document.all&&!document.getElementById)
var Digital=new Date()
var hours=Digital.getHours()
var minutes=Digital.getMinutes()
var seconds=Digital.getSeconds()
if (hours”+hours+”:”+minutes+”:”+seconds+””
if (document.layers){
else if (document.all)
else if (document.getElementById)
$(document).ready(function(){ show5(); });

<span id=”liveclock” style=”position:relative;left:0;top:0;”></span>