:433 - Safari can't open page

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]

I guess I’ll contact the host next.

How are you redirecting? It’s NOT in the htaccess file you showed?

Are you using multiple ways to redirect?

Ah now I see what you’re asking.

My help page redirect is in Javascript:

parent.location.replace(‘Aurora Print Solutions • Helpful Resources’);

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.

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]
RedirectMatch  ^/signup/ https://auroraprint.us3.list-manage.com/subscribe?u=b047c8d8341bef7158611f36f&id=735a2164e3

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.

1 Like

Thanks Doug. The working help page link is:
https://auroraprint.ca/about/helpful-resources/index.html

I guess I can just duplicate the last line and change it as needed?

Whoops, that still isn’t working. I get the “too many redirects” error. So I’ll contact my host.

here is a complete htaccess with the last help redirct:

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]
RedirectMatch  ^/signup/ https://auroraprint.us3.list-manage.com/subscribe?u=b047c8d8341bef7158611f36f&id=735a2164e3
RedirectMatch  301 ^/help/ https://auroraprint.ca/about/helpful-resources/index.html

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.

I removed the javascript and the head code and republished just those 2 pages. So I need to republish the whole site?

Oh there are redirects also on my Lockdown page. That uses htaccess too I think.

This is why it’s best practice to do all redirects in the htaccess file.

Sounds like so far you’ve identified 4 ways that you’ve been doing redirects.

The Lockdown page (plugin by YourHead) has it’s own htaccess file in it’s own directory. It’s contents are made by the plugin:

<Files ~ "^_pa">
Order allow,deny
Deny from all
Satisfy All
</Files>
AuthType Basic
AuthName "Aurora Print Solutions online orders"
AuthUserFile /nfsvol-www/60/77960/auroraprint.ca/public/customerlogin/files/_passwords
require valid-user

It doesn’t seem to make a difference with Lockdown. I removed it’s htaccess file temporarily and it still says too many redirects.

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.

Unless there’s something in the control panel.

I’ll try all you suggested and then contact my host’s support.

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]

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.