Lock Down WordPress login.php and wp-admin Directory

Sometimes securing a site also requires you to lock it down as to who can access the admin area. Here is a modification that can be done to the .htaccess file that will lock down the wp-login.php and also the wp-admin directory to specific IP addresses. Real easy to...

Manually Modifying WordPress’s URL via SQL

Sometimes it is easiest to modify the URL globally through SQL.  Here are the main commands you are going to want to run to modify the URL's throughout the database. UPDATE wp_options SET option_value = replace(option_value, ‘http://www.oldurl',...

Name, Address, and Phone Number (NAP) Schema

Here is an example of what to put in for a NAP Schema <div itemscope itemtype=”http://schema.org/LocalBusiness”> <p itemprop=”name”>COMPANY NAME</p> <p itemprop=”address” itemscope...

On Click Download and Redirect to Thank You Page using jQuery

So I ran into a rather interesting need of a client. They wanted to have a link to a downloadable file but also have a redirect to a thank you page. I found that I could add some data to the link that allowed me to write some jQuery and allow the link and thank you...

Permissions Fix for public_html and Apache2 Userdir Module

Here is the script that can be used to fix the apache2 user to have access to a users public_html folder and make changes.  This issue arises sometimes when you use applications like WordPress that when adding plugins and/or themes will need to be able to modify or...