Helpful tips and tricks by Steven Sullivan

Remove trailing slashes in NGINX & WordPress

If you hate those trailing slashes or perhaps you’re just a fan of good SEO practices then you’ll probably want to remove the trailing slashes from your WordPress installation and edit your NGINX configuration to make sure anything WITH a trailing slash is sent permanently (301 redirect) to the page without a slash.

How to install ngx_pagespeed with NGINX in VestaCP

This tutorial for ngx_pagespeed has only been tested with Debian 7. I will provide the alternate commands for RedHat, CentOS, or Fedora but I have not tested this.

I first installed and compired NGINX from source BEFORE removing the packages incase I hit any problems, then issued the commands AGAIN to confirm it was all working. As usual – take backups!

Redirect in NGINX: 301 & 302

NGINX is becoming more popular every second – and it’s because it’s super fast. In this tutorial I’m going to show you the difference between a 301 and 302 redirect in NGINX and how to implement them. But first, let’s know the difference.

301 redirects are what is known as permanent redirects. This tells search engines that the old page has been moved permanently.

EU Cookie Law jQuery Tool

This really simple script to adhere to the EU Cookie Law is literally a copy/paste job which informs the user about cookies and asks them what they would like to do. If they accept cookies then it removes the notification for 365 days. If they decline the use of cookies it then continuously deletes any cookies set.