Redirecting HTTP to HTTPS via .htaccess

Earlier this year, Google announced that HTTPS shall now act as a factor in determining search engine ranks:

For now it’s only a very lightweight signal — affecting fewer than 1% of global queries, and carrying less weight than other signals such as high-quality content — while we give webmasters time to switch to HTTPS. But over time, we may decide to strengthen it, because we’d like to encourage all website owners to switch from HTTP to HTTPS to keep everyone safe on the web.

I recently decided to employ HTTPS on some of my mission-critical websites. Implementation was pretty simple, but the major problem was that Google had indexed all my web pages as HTTP already. As such, redirecting users from HTTP to HTTPS was important. Continue reading Redirecting HTTP to HTTPS via .htaccess

Are The New Niche TLDs Worth The Money?

The internet is all abuzz with talks of new TLDs, which range from something as generic as .website to another one as elitist as .ceo

Whilst the new TLDs might attract a good deal of attention, I personally do not think any of them is worth the trouble. Sure, you might purchase them to protect your brand-name, but such TLDs are not yet ready to act as the primary domain of any serious website.  Continue reading Are The New Niche TLDs Worth The Money?

Firefox Comes To iOS: Too Late?

Back in April 2013, Mozilla’s then-CEO Gary Kovacs refused to bring Firefox to iOS devices. Here is why:

“One of the most interesting things he spoke about today was why Firefox has not been released on iOS while Google has offered its Chrome browser on iOS for some time. He confirmed earlier reports that Apple was blocking its submission due to Mozilla wanting to use a different web engine.

“iOS has a policy, generally speaking, where you have to use their web engine,” Kovacs said. “Our web engine is different…. I would love to see far more energy behind iOS. We refuse to make the policy switch.”

Continue reading Firefox Comes To iOS: Too Late?

Book: concrete5 For Developers

My latest book, “concrete5 for Developers”, was recently released by Packt Publishing. Here is an overview of what the book is about:

About The Book

  • Utilize concrete5 as a CMS to its optimum potential
  • Master advanced topics such as theme and block development, as well as concrete5 attributes
  • Special emphasis on concrete5’s features from a developer’s perspective, including packages and add-ons

Continue reading Book: concrete5 For Developers

What Makes Node.js Popular?

Of late, Node.js has risen in popularity. There used to be a time when Node.js was being termed as cancer (seriously), followed by another period when it was described as the cure for cancer (again, seriously). However, all of the debates came to a halt once Ghost, the newest sensation in the blogosphere, decided to opt for Node.js as its backbone.

So, what exactly is the reason behind the rise in popularity of Node.js? While a lot many reasons can be cited for the same, there is one primary one, which has nothing to do with scalability or performance. Continue reading What Makes Node.js Popular?

Fixing mod_rewrite And .htaccess For Clean URLs

In order to enable SEO-friendly URLs, many web hosts require mod_rewrite. This is especially true if you are on a shared hosting platform. While mod_rewrite does not always result in big issues, sometimes, if you try to hit a deep URL, you might end up with 404 errors.

This post talks about how to fix mod_rewrite and .htaccess on shared hosting in order to avoid 404 errors when using clean URLs. Continue reading Fixing mod_rewrite And .htaccess For Clean URLs

Enabling GZIP Compression on nginx Servers

I recently started writing for Envato’s Market Blog, and my very first post talks about Google PageSpeed Insights.

It is common knowledge by now that a speedy website is loved by everyone, including search engines and humans. Thus, compressing your scripts and images is a good idea to optimize your website’s load times. In this post, I will talk about an easy way to enable GZIP compression on nginx servers.  Continue reading Enabling GZIP Compression on nginx Servers

Fighting Comment Spam: A Different Method

Dealing with spam comments is a very annoying task that almost everyone running a website has to face on a regular basis. While for most blogs and websites, solutions such as Akismet do the job of keeping spam away, in some cases, normal anti-spam solutions simply do not suffice.

As a result, I came up with a slightly different approach to combating comment spam. I have used it mostly on my WordPress websites, though it can work with anything that uses PHP and JavaScript. Continue reading Fighting Comment Spam: A Different Method

Using reptyr To Move Processes in Linux

If you are a frequent user of the Linux terminal, you must already be aware that switching running processes across terminals is a tedious task. If you launch 3 different processes from 3 terminals, all of them continue to run in parallel, until the process in the current terminal completes its task.

Quite obviously, it would be great if we could bring the other two processes to the current terminal without actually having to switch terminals. This post explains the same. Continue reading Using reptyr To Move Processes in Linux