Month: September 2014

This code will add a nofollow attribute to external pages on your website

I found out that Spammers has turned one my website into their hub. So, I came up with this code to discourage them from posting on my site and also remain on the good side of Google. The code will automatically attribute a rel=”nofollow” to all the external anchor tags on your website. <script src=’http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js’ …

Perfect code to redirect a website to a different page on load

Even though I expect codes like this to be very popular among webmasters, I still feel I should share this here with you. It’s a simple code to redirect a landing page to another page or website. <!–REDIRECTING STARTS–> <link rel=”canonical” href=”http://your-website.com/”/>  <noscript> <meta http-equiv=”refresh” content=”0;URL=http://your-website.com/”> </noscript> <script type=”text/javascript”>     var url = “http://your-website.com/”; …