Thanks. It’s redirecting to Mailchimp to sign up for our newsletter so that address is correct. Strange that it’s working for you but not me. This is what I put in the htaccess file, copied from it and pasted directly here:
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www. [NC]
RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]
The signup page that redirects to Mailchimp is in Head:
meta HTTP-EQUIV=“REFRESH” content=“0; url=Aurora Print Solutions”
(The above is enclosed in < > but I can’t use them here.)
I’ve tried these 3 pages and they’re working without me typing in the entire URL, but without the htaccess file it’s no longer secure:
auroraprint.ca/contact
auroraprint.ca/order
auroraprint.ca/upload
Okay,
You might consider keeping all redirects in your htaccess file. The JavaScript redirect is using www and you indicated that you don’t want www. There are still a few people that don’t have JavaScript turned on. Granted there’s not many but still, no reason to do it that way.
Using meta http-equiv is kind of silly when the htaccess file actually updates the HTTP header instead of doing a “faux” equivalent meta tag.
Here is a tested working htaccess file that will take care of the www, the https, and the sign-up. I couldn’t get the page you refer to in the JavaScript to come up https://www.auroraprint.ca/about/helpful-resources. It doesn’t seem to work.
Just copy it and paste it as plain text. Also, get rid of the meta tag and Javascript redirects.
BTW,
If you want to use code on the forum you should select it and mark it as Preformatted text with the </> right next to the quote mark above where you type.
Did you remove the HTTP meta tag and Javascript? Did you republish all files?
You must have some other spot where you are doing redirects. The standard https and remove www code is on thousands of sites. It’s standard stuff that’s been published all over StackOverflow. There is a link to a tester above) and it works.
If you have republished all files, cleared the cache, and are still getting too many redirects; then, it’s got to be coming from some other place.
It’s probably something upstream of the htaccess file. Perhaps something in the httpd.conf or other conf files Apache uses. You wouldn’t have access to these.
I haven’t had time to look into this again until today. I put everything back the way I had it before in the htaccess file etc. I don’t know why none of your suggestions worked Doug, but it appears to be mostly working now and not giving me the “:443” error except for my help page but I don’t really care about that one. Maybe something changed with our host, or something cleared up in my cache in the last 13 days, Thanks for everyone’s help though!
I put in a request to my host awhile back about the :443 issue, and they kicked it up to their hosting technical team. I finally got a reply:
Our hosting team confirms that they have resolved the issue by making an adjustment via the “htaccess” file to properly handle the “missing slash” at the end of directory requests.
Added the following lines :
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+[^/])$ https://auroraprint.ca/$1/ [R,L]