# Enable mod_rewrite
RewriteEngine On

# Fix PHP memory limits
php_value memory_limit 256M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

# Enable error logging
php_flag display_errors On
php_value error_reporting E_ALL

# Prevent directory listing
Options -Indexes

# Default Directory Index
DirectoryIndex index.php index.html index.htm

# Rewrite rule to prevent infinite loops
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
