54 lines
2.3 KiB
ApacheConf
54 lines
2.3 KiB
ApacheConf
|
|
RewriteEngine on
|
|
RewriteCond %{HTTPS} off
|
|
RewriteCond %{HTTP:X-Forwarded-SSL} !on
|
|
RewriteCond %{HTTP_HOST} ^spencerflagg\.com$ [OR]
|
|
RewriteCond %{HTTP_HOST} ^www\.spencerflagg\.com$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
|
|
RewriteRule ^/?$ "https\:\/\/spencerflagg\.com\/" [R=301,L]
|
|
|
|
|
|
# BEGIN WordPress
|
|
<IfModule mod_expires.c>
|
|
ExpiresActive On
|
|
ExpiresByType image/jpg "access plus 1 year"
|
|
ExpiresByType image/jpeg "access plus 1 year"
|
|
ExpiresByType image/gif "access plus 1 year"
|
|
ExpiresByType image/png "access plus 1 year"
|
|
ExpiresByType text/css "access plus 1 month"
|
|
ExpiresByType application/pdf "access plus 1 month"
|
|
ExpiresByType text/javascript "access plus 1 month"
|
|
ExpiresByType text/html "access plus 5 minutes"
|
|
ExpiresByType image/x-icon "access plus 1 year"
|
|
ExpiresDefault "access plus 6 hours"
|
|
</IfModule>
|
|
<ifModule mod_headers.c>
|
|
Header set X-Endurance-Cache-Level "2"
|
|
</ifModule>
|
|
<IfModule mod_rewrite.c>
|
|
RewriteBase /~spencga0/
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
|
|
RewriteRule ^index\.php$ - [L]
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
|
|
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
|
|
RewriteRule . /~spencga0/index.php [L]
|
|
</IfModule>
|
|
|
|
# END WordPress
|
|
|
|
# php -- BEGIN cPanel-generated handler, do not edit
|
|
# Set the “ea-php74” package as the default “PHP” programming language.
|
|
<IfModule mime_module>
|
|
AddHandler application/x-httpd-ea-php74___lsphp .php .php7 .phtml
|
|
</IfModule>
|
|
# php -- END cPanel-generated handler, do not edit
|