# Disable directory listing Options -Indexes # Follow symbolic links in the directory Options +FollowSymLinks # Forbid apache to guess file extensions Options -MultiViews # Disable mod_security for Apache 1.x SecFilterEngine Off SecFilterScanPOST Off # Explicitly set right settings for mod_php 5 for Apache 1.x and 2.x php_flag magic_quotes_gpc off php_flag magic_quotes_sybase off php_flag register_globals off php_flag mbstring.encoding_translation off php_value mbstring.http_input pass php_value mbstring.http_output pass php_flag session.auto_start off # Redirect requests to the front controller # Use the front controller as a default handler DirectoryIndex index.php RewriteEngine On # Use separate front controller for the system installator RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^install(/(.*))?$ install.php [QSA,L] # Rewrite all other requests for files and directories that do not exist to # the main front controller RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php [QSA,L] # There is no mod_rewrite in the system. For the root Mibew Messenger # directory index_fallback.php should be loaded first to activate # old-fashioned URLs. For all other directories index.php is just a # directory index file. DirectoryIndex index_fallback.php index.php # Deny access to internal system files Deny from all # Deny access to CLI cron worker from the outside Deny from all