Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # BEGIN GD-SSL
- <IfModule mod_rewrite.c>
- Options +FollowSymLinks
- RewriteEngine On
- RewriteCond %{HTTPS} !=on
- RewriteCond %{HTTP_USER_AGENT} ^(.+)$
- RewriteCond %{SERVER_NAME} ^www\.domain\.com$
- RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
- Header add Strict-Transport-Security "max-age=300"
- </IfModule>
- # END GD-SSL
- # 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement