Is it possible to set Apache’s AllowOverride directive to All

The AllowOverride directive in the Apache's configuration has been set to ‘All’ on all Hostlantern servers.

Thus you are able to use a local .htaccess file and define options such as:

#Enable mod_rewrite and insert some sample rules:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]         ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$  [NC]
RewriteRule ^(content/|component/) index.php

#Enable security mod:
SecFilterEngine On
SecFilterScanPOST On
# SecAuditLog logs/audit_log # Not sure what my host would think of that...
SecFilterDefaultAction "deny,status:412"
# WEB-ATTACKS wget command attempt
SecFilterSelective THE_REQUEST "wget "

#Set different handlers for scripts:
AddHandler nonworkig .cgi .pl .py

Note: Please do not use an .htaccess file to specify PHP settings. PHP settings can be changed only with a local php.ini file.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Leverage Browser Caching for Images, CSS and JS

To leverage your browser's caching generally means that you can specify how long browsers should...

Enable gZIP via .htaccess

To enable gZIP for your text, html, JavaScript, CSS and XML add these files to your .htaccess:...

Last-modified Header Explained

The last-modified header is an HTTP header that tells your browser when was the last time the...

How to change my document root folder using an .htaccess file?

By default your website is loaded from the public_html folder of your account. The public_html...

How to enable Mod_Gzip

Mod_Gzip is an external extension module for Apache 1.3 web servers implemented to help with size...