8 articles Htaccess

Htaccess category have posts related to making updates or changes in website or controlling the website through the use of Htaccess file. The posts in this category are helpful and can be applied on apache servers or in linux based hosting environment only.

How to run you first website on Amazon AWS?

Today, is the time of cloud computing and many of us might not be aware of how to set up your first website on one of the best and popular cloud service providers i.e. Amazon Web Services or AWS. So, I am here to explain or guide you in setting up your first web environment…

Prevent access to files in a directory using file type and htacess – all about website security

This is a simple example illustrating the use of htaccess to block access of files based upon certain file types. 1. Prevent access of .php files in a directory. Create a file .htaccess inside the folder/directory where you do not want the .php files to be invoked or called or executed. Now place the following…

How to add 301 permanent redirect using .htaccess?

Most of times we stuck in getting out of situations where it demands some kind of redirects whether its permanent redirect or a kind of temporary redirect (302). Permanent Redirect: If you need to change the URL of a page as it is shown in search engine results, we recommend that you use a server-side…

URL rewrite with www prefix using htaccess

At many times we are in need to append www prefix in website urls. This post will guide you to achieve the same. Lets say we have a domain example.com and we want it to appear as www.example.com or http://www.example.com. In order to complete this we must have a file with the name .htaccess placed…

Website Performance Optimization

Website Performance Optimization: Web performance optimization or website optimization is the field of knowledge about increasing the speed in which web pages are downloaded and displayed on the user’s web browser. With the average internet speed increasing globally, it is the requirement for website administrators and webmasters to consider the time it takes for websites…