TAG: .htaccess

Banning Traffic to Your Site

When you have a web site you want to bring in as much traffic as possible. But sometimes you find that there’s a few bad actors out there that don’t necessarily have the best of intentions. In times like these you have the option to protect your site by blocking individuals who you deem malicious.…

How To Edit A .Htaccess File

Please note that editing .htaccess files is very unforgiving. Even the slightest mistake can cause your site to display content incorrectly or not at all. When editing your .htaccess file, always make a backup copy so you can get back to a working configuration if something goes wrong. Linux systems are case sensitive, even the…

Creating and Editing an .htaccess File

Since you’re reading this article you may need to create or edit an .htaccess file, however you may also be wondering what an .htaccess file is. An .htaccess file is a configuration file specifically to be used in tandem with the Apache web server. It can allow you to customize things such as how a…

Set a Permanent (301) Redirect Using .htaccess

In the never ending race to have a relevant easy to navigate site with quality content that helps drive traffic you may find yourself needing to redesign your site or rebuild it from the ground up using a different domain name. Or perhaps you’re simply wishing to expand or diversify your web presence/brand by utilizing…

Change the Default Index Page Using .htaccess

By default most servers that host websites are configured to use a file called index (.html/.htm/.php/etc) as the default index page for a website. However, by using some .htaccess code you can change this so that you can name your default index page to whatever you want. The focus of this article is to show…

Redirect to Use the SSL Connection (https)

Using an SSL to encrypt the connection to your site not only makes visitors feel more at ease, but should also give you some peace of mind knowing that this encryption is in place. But how do you ensure that a visitor will always use the SSL connection for your site? The answer is by…

Defining Regex Characters for .htaccess

RegEx, short for regular expression, is typically defined as a specific string of text used to describe a search pattern. Essentially regular expressions can be thought of as really powerful wildcards. Whether you know it or not regular expressions or RegExes are used anytime you perform a search on the internet through a search engine…

Redirect a Subdomain Using .htaccess

A subdomain is defined as a domain that is a part or an extension of a main domain. Subdomain’s can be anything from the commonly used www to something very specific such as docs.google.com. Generally you’d define where a subdomain points or uses as its web root by setting its virtual host entry accordingly, however…

Block Visitors by URL Referrer Using htaccess

In some instances you may notice a surprising spike in traffic but no actual increase to files being requested or overall content being served. This may be an indication that someone is siphoning some of your content, such as images, and attempting to pass it off as their own or perhaps attempting to hack your…

What is an .htaccess File?

The .htaccess file is a configuration file, specifically used by Apache based web servers, to help manage certain functionality associated with files/folders directly tied to your website. Short for Hypertext Access, when a .htaccess file is present in a directory Apache will load this file and any applicable rules that are defined in the file.…

  • Page 1 of 2
  • 1
  • 2