Totally Zenned
- Join Date:
- Jan 2004
- Location:
- N of San Antonio TX
- Posts:
- 9,866
- Plugin Contributions:
- 19
Why is Google not listing my products?
That .htaccess you quoted should be in your includes/ folder - not the root (eg: public_html). If you have copied it to the root, put it back where it belongs.
That's the reason for your anonymity.
You normally would not have an .htaccess file in the root unless your server created it for a PHP override or for adding intentional redirects.
In something like notepad++, copy the following and save it as .htaccess. Then, FTP it to the ROOT of your website (eg: public_html)
Needed before any rewritingRewriteEngine On
# Redirect HTTP with www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect HTTP without www to HTTPS with www
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# Redirect HTTPS without www to HTTPS with www
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
## 301 Redirects
```This will force everything to the www of your site which matches the SSL. Make sure any bookmarks you have made to the site or admin have the www in them.
Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com