Mikey Armstrong has written 163 articles

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…

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
  • ...