Quantcast
Channel: Lampdocs.com » .htaccess
Browsing latest articles
Browse All 9 View Live

Apache: How To Deny Access To Certain File Types

Sometimes we need to close access to cerain file types. We often deny directory listings and think that’s enough. But even if the files will not appear in directory indexes this will not imply that...

View Article



Deny Access to All IPs Except Yours .htaccess Solution

Sometimes you need to perform any specific tasks that require nobody accesses the page while it is being edited. There may be some tests, database update or anything else. So your task is to deny...

View Article

Image may be NSFW.
Clik here to view.

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

View Article

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

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

View Article

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

View Article


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

View Article

Image may be NSFW.
Clik here to view.

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

View Article

How to Enable register_globals in php using .htaccess

As you should already know, register_globals is a php.ini directive that manages the way PHP deals with variables. It has been deprecated for security issues and we won’t see it in PHP 6.0. If the...

View Article


How to Disable PHP Output Buffering With .htaccess

In order to disable PHP outbut buffering for a single site, you can add the following line to .htaccess: php_value output_buffering Off Reboot Apache and have fun!

View Article

Browsing latest articles
Browse All 9 View Live




Latest Images