Tag Archives: vhost

Disable execution of script in a specific path within a vhost

Add this into your vhost (making sure to match the Directory directive with the correct path):

 

Apache Rewrite rules

Rewrite rules examples:

This can be added in vhost configuration OR in .htaccess file

How to rewrite all web request on my site without www to www.domain.com

 

How to redirect all web requests on port 80 (or HTTP) to port 443 (HTTPS)

 

How to disable TRACE and TRACK methods on Apache

 

How to exclude mod_status from being rewritten by existing rules (placed before the problem rule)

 

How do I redirect all web requests on www.mysite.net/web to www.mysite.net/sect1/web

 

Rewrite all non-www to www

 

Force all URLs to be lowercase