# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# Increase PHP Memory, Upload File Size, and Execution Time
php_value upload_max_filesize 180M
php_value post_max_size 200M
php_value memory_limit 512M
php_value max_execution_time 900
php_value max_input_time 900

# Prevent Directory Browsing
Options -Indexes

# Custom Error Pages
ErrorDocument 404 /includes/404.html
ErrorDocument 500 /includes/500.html


# Force HTTPS
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>



# Disable Server Signature
ServerSignature Off
