[Pro] SSL and Freeway Pro

Barry,

Here’s a block of .htaccess code you can play around with. You can use your cPanel to edit or do like I do and just use Transmit to edit the main .htaccess file at the root of your domain. Backup your old .htaccess file first.

# STRONG HTACCESS PROTECTION
<FilesMatch "^.*.([Hh][Tt][Aa])">
 Order allow,deny
 Deny from all
 Satisfy all
</FilesMatch>

# Do not allow directory listings in-browser
Options -Indexes

# Enable Rewrite feature:
RewriteEngine On

# Send stupid Wordpress hackers back to their own IP!
RewriteCond %{REQUEST_URI} ^(.*)?wp-login.php(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wp$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?(.*)admin(.*)$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?wordpress$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?joomla$ [OR]
RewriteCond %{REQUEST_URI} ^(.*)?bitrix$
RewriteCond %{REQUEST_URI} !^/[0-9]+..+.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}.txt(?: Comodo DCV)?$
RewriteCond %{REQUEST_URI} !^/.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule (.*) http://%{REMOTE_ADDR}/$1 [R=301,L]

# NOTE: R used by itself defaults to R=302 temporary redirect

################[ HTTPS, remove "www" ]################
# Ensure the connection is NOT already HTTPS:
RewriteCond %{HTTPS} on

# Rewrite only on this domain:
RewriteCond %{HTTP_HOST} ^www.hoffkids.com [NC]

# Redirect users from their original location to the same location but using HTTPS.
# EXAMPLE:  http://www.example.com/foo/ redirects to https://www.example.com/foo/
RewriteRule ^(.*)$ https://hoffkids.com/$1 [R=301]
##################################################


################[ HTTP -> HTTPS ]################
# Ensure the connection is NOT already HTTPS:
RewriteCond %{HTTPS} !=on

# Rewrite only on this domain:
RewriteCond %{HTTP_HOST} ^(www.)?hoffkids.com [NC]

# Restrict HTTP-to-HTTPS rewrites on port 80 (which is used for HTTP):
RewriteCond %{SERVER_PORT} 80

# Redirect users from their original location to the same location but using HTTPS.
# EXAMPLE:  http://www.example.com/foo/ redirects to https://www.example.com/foo/
RewriteRule ^(.*)$ https://hoffkids.com/$1 [R=301]
##################################################

#Fix links-with-anchors that are clicked inside an email:
RewriteRule ^(.*#.*) /$1 [R,NE]

<IfModule mod_speling.c>
CheckSpelling on
</IfModule>

freewaytalk mailing list
email@hidden
Update your subscriptions at: