Sorry, you are using CEON URL rewriter which has nothing to do with 301 redirect making your site become http and either www or non-www.
You have nothing in your .htaccess that does a 301 redirect AND your certificate is STILL non-www.
You have us chasing in circles as you are changing things that have nothing to do with where we are trying to get you.
In your .htaccess file where it says
Code:
###############################################################################
# Add any custom 301 redirects
###############################################################################
# Notes:#
# In general these should be few and far between. If you use a RewriteRule
# be sure to add the L flag to let Apache mod_rewrite know to stop processing
# and skip any RewriteRules defined later in the .htaccess file.#
#############################################################################################################################################################
# Redirect if request was for index.php (with or without query)#
##############################################################################
# Notes:#
# This is a performance optimization. If the request is for index.php simply
# pass the request on and do not process any other mod_rewrite directives in
# this file.#
# Basically this avoids the overhead of checking if index.php is a real file
# or directory (used in subsequent mod_rewrite rules) before sending the
# request to index.php.
replace it with
Code:
###############################################################################
# Add any custom 301 redirects#
##############################################################################
# Redirect HTTP with www to HTTPS without wwwRewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]
# Redirect HTTP without www to HTTPS without www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect HTTPS with www to HTTPS without www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule .* https://%1%{REQUEST_URI} [R=301,L]
## 301 Redirects
Bookmarks