Articles

 .htaccess in WordPress

The .htaccess file in your WordPress install is a powerful configuration file that can improve...

 How to Edit Your .htaccess File?

There are many ways you can choose to edit your .htaccess file and one of them is to do it...

 How to create a .htaccess file?

Depending on your install, you may not have an .htaccess file so before you can think about...

 How to download .htaccess file?

You can download a copy of your .htaccess file in cPanel by going to Files > File Manager...

 Prevent Directory Browsing

It’s possible for visitors to see a list of your site’s directories in the front-end if they...

 Prevent Image Hot Linking

When a visitor grabs the URL of one of your images and loads it into their site instead of...

 Prevent Username Enumeration

When a visitor enters your-site.com/?author=1 into their address bar, they’re directed to the...

 Protect Your Site Against Script Injections

You’re on a serious roll now so why not also prevent injections of malicious code into your PHP...

 Protecting Important Files

One of the best edits you can make is to protect your .htaccess file along with your error logs,...

 Require SSL

Use the code below to force the use of an SSL certificate unless the exact Fully Qualified Domain...

 Restrict Access to PHP Files

Similarly, providing direct access to your PHP files is a big no-no. The harder you make it for...

 Restrict Access to the Admin

You can also restrict access to the admin dashboard and login page by adding the rules below if...

 Restrict PHP File Execution

While we’re on the subject, you may as well also prevent unauthorized execution of PHP files so...

 Securing the wp-includes Directory

Your wp-includes directory is home to so many of your important files. By blocking all...

 Where the .htaccess file located and what's .htaccess got to do with It?

The .htaccess file is located in the root of your site (or Multisite network). The period in...

 Where to Add Your Changes?

When you’re editing your file, it’s important to note that lines beginning with a hashtag are...