Mikey Armstrong has written 164 articles

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…

Set a Temporary (302) Redirect Using .htaccess

There are two types of redirects, a permanent and temporary redirect. We will be taking a look at temporary redirects. If you’d like to learn how to utilize a permanent redirect, please consult our guide which covers this in detail: Set a permanent (301) redirect using .htaccess How do I create a temporary redirect? The first…

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…

Password Protect Files or Directories with .htaccess

In some instances you may find that you need to secure content on your website and require authentication to access this protected content. This can be achieved by using the awesome flexibility of a little bit of code in your .htaccess file. In this article we will cover how to protect both files and directories…

Force Browsers to Download Media Files Instead of Displaying Them

Generally most modern day browsers will attempt to play/stream media files, such as videos when this type of content is accessed. In some instances this may be exactly the type of behavior that you’d expect and want. However this may not always be the case. If you’d like to learn how to ensure that multimedia…

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…

  • Page 6 of 17
  • ...
  • 4
  • 5
  • 6
  • 7
  • 8
  • ...