# ==========================================
# SHESWOW CUSTOM ROUTING
# ==========================================
RewriteEngine On
RewriteBase /
# Route /model/username to profile.php
RewriteRule ^model/([a-zA-Z0-9_-]+)/?$ /profile.php?slug=$1 [L,QSA]
# Sitemap
RewriteRule ^sitemap\.xml$ /sitemap.php [L,QSA]
# ==========================================
# SHESWOW PERFORMANCE (GZIP & CACHING)
# ==========================================
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/json
ExpiresActive On
ExpiresByType image/webp "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType image/svg+xml "access plus 1 year"
php_value upload_max_filesize 50M
php_value post_max_size 55M
php_value max_execution_time 300
php_value max_input_vars 3000
php_value max_file_uploads 100