Here is the .htaccess code
# Use PHP 5.4
AddType application/x-httpd-php54 .php
# BEGIN s2Member GZIP exclusions
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\\?|&)s2member_file_download\\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\\?|&)no-gzip\\=1
RewriteRule .* - [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions
# BEGIN SSL
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ [https://]%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
# END SSL
# BEGIN WordPress
RewriteEngine on
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# uploaded files
RewriteRule ^siteslogin$ https://example.com/wp-login.php [NC,L]
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
<FilesMatch "\\.pdf$">
header set x-robots-tag: noindex
</FilesMatch>
# END WordPress
**And here is the wpconfig code**
# Use PHP 5.4
AddType application/x-httpd-php54 .php
# BEGIN s2Member GZIP exclusions
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{QUERY_STRING} (^|\\?|&)s2member_file_download\\=.+ [OR]
RewriteCond %{QUERY_STRING} (^|\\?|&)no-gzip\\=1
RewriteRule .* - [E=no-gzip:1]
</IfModule>
# END s2Member GZIP exclusions
# BEGIN SSL
RewriteEngine on
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ [https:]//%{HTTP_HOST}%{REQUEST_URI}$1 [R=301,L]
# END SSL
# BEGIN WordPress
RewriteEngine on
RewriteBase /
RewriteRule ^index\\.php$ - [L]
# uploaded files
RewriteRule ^siteslogin$ https://example.com/wp-login.php [NC,L]
RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule . index.php [L]
<FilesMatch "\\.pdf$">
header set x-robots-tag: noindex
</FilesMatch>
# END WordPress