Category Archives: .htaccess

Everything you need to know about htaccess solutions

How To Find The Version of Linux You Are Using

Sometimes you need to know what version of the Operating system is installed on your server. This is extremely useful when you order a dedicated server and want to know what is the version of OS on it. A simple command will help you as usual: cat `ls /etc/*{-,_}{release,version} 2>/dev/null | head -n 1` This will show you… Read More »

htaccess Site Redirection Without Parameters

Sometimes you need to redirect all traffic from one site to another. Very often site structure is different and the need is to send visitors to the main page of the site. This makes Site Redirection tabs of all known panels unusable, as the parameters are being sent to the new site. For example, if you had… Read More »

How To Protect a Folder Using .htaccess From Command Line

We do often meet password protected directories on the Web. This is usually used to hide some information that should not be visible to all site users. Most common is .htaccess protection, that allows you to restrict users at Apache level and is also knows as http authentification. Today I will tell you how to protect your directory… Read More »

Setting Custom Error Pages for All User Domains with .htaccess on a Directadmin Server

Sometimes it is useful to use custom error pages on all user domains  (In case of maintenance, new software installation, etc). It’s a pity you are unable to do it for all user domains in Directadmin, just for a single one. But htaccess comes to help us this time. Go to /home/admin/domains (certainly, replace admin with your username)… Read More »

How To Deny Directory Listing Using .htaccess

Often when you’re using shared hosting, there are some problems with directory listing. Server administrators should avoid this as this represents a security hole. But what to do if you don’t have access to httpd conf and need to prevent directory listing? What to do if you have something like this: A simple string in .htaccess file will… Read More »