[SOLVED] Force SSL and WWW on Sub Domain with .htaccess

I had someone today who was having some issues with their financial site and the SSL cert so I solved the main issue but noticed that visitors could navigate to https://www.{subdomain}.{domain}.com (with www). Ideally, to keep things clean, they need to go to https://{subdomain}.{domain}.com (without www). So after scrambling around for a bit trying various methods I settled on the solution below which you can place in your root .htaccess file and...

Read More Here >>

[SOLVED] – Simple WordPress xmlrpc.php Attack Prevention

Unless you have a decent WAF checking hack attempts on your server, then you are going to succumb to some serious overloading. One of the favourites of hackers and comment spammers is attacking the xmlrpc.php file which comes as standard on your WordPress install. If you are running a server with hundreds of sites, then its not practical to block on each account so you need to do it above the /home directory. Here is a screenshot explaining what happens...

Read More Here >>

[SOLVED] – merge tags issue with gravity forms + blank emails

I came across an issue recently where the merge tags from the admin notifications in Gravity Forms were coming out blank when the email notification arrived to the inbox. Also, the email was not being inserted into the entries section of Gravity Forms. This situation can happen for two reasons: There are some gravity forms table missing in your database Some of the tables in your database are corrupted. If there is table corruption, just whip open...

Read More Here >>

How to Install MEMCACHE on Cpanel Server and WordPress

I have read some good things about memcache and apparently facebook uses it, so thought it must be fairly decent. I wanted to test it out on one of my WordPress sites which is hosted on one of my dedicated servers running WHM/Cpanel. Lets Go! 1. Install MemCache onto your Cpanel server # yum install memcached # service memcached start # pecl install memcache # service httpd restart 2. Make memcache run even after reboots # chkconfig --levels 235...

Read More Here >>

Send Email When Windows VPS Starts Up with Batch File

I have some windows vps servers and when they are restarted I want to receive an email when they do, just so that I know what’s going on. After some searching I found a great, free little utility called mailsend.exe mailsend is not fancy and can only be run through the command line, but what it does allow is configuration of smtp servers, so in the case your vps has port 25 blocked, then just use gmail as your external mail server. Here is an...

Read More Here >>
NAVIGATION MENU