≡ Menu

apache .htaccess

Apache redirect www.domain.com to domain.com

Q. How do I remove www from all my urls so that search engine can only rank domain.com/ urls under Linux Apache web server?

[click to continue…]

LimitRequestBody: Apache Limiting User Upload File Size

I'd like to put limits on user(s) who are uploading files. How do I restricts the total size of the HTTP request body sent from the client under Apache 2 Web server?
[click to continue…]

Apache Web Server .htaccess File Configuration Not working

I'm using a CentOS Linux server with Apache 2 web-server and PHP. I've created .htaccess file for URL rewrting and other configuration options. However, my Apache version 2 .htaccess configuration is not working at all. How do I fix this problem?
[click to continue…]

Apache prevent hot linking or leeching of images using mod_rewrite howto

Q. My site hosts lots of good images and other site hot links to my images from their own site. Hot linking is eating lots of my bandwidth. How do I stop lechers or prevent hotlinking under Apache web server?
[click to continue…]

Set Apache Password Protected Directories With .htaccess File

I am a new Linux server sysadmin. How do I protect a directory in Apache web-server on a Linux operating systems?
[click to continue…]