I have a couple of directories set up so people can just type in auroraprint.ca/signup and it goes to www.auroraprint.ca/signup/index.html for example.
I just noticed this happen on our website and it used to work… Safari just says: Safari cannot open the page auroraprint.ca:443/signup because the server unexpectedly dropped the connection. It also doesn’t work in Firefox.
Not sure why the :443 is being added. Related to using https? This technique seems to still work with my page for Contact and Orders, but 2 pages I set up for Signup and Help don’t work They are pages that forward to another page - Signup forwards to our Mailchimp signup, for example.
The host is Rebel and they set up the certificate through a partner (can’t remember the name). I haven’t made any changes to the htaccess file recently but I hadn’t noticed this problem until today so maybe it hasn’t been working this whole time. I just tried auroraprint.ca/signup and contact on my iPhone and I got the error. I have to wait until tomorrow when I’m back in the office to see what’s in the htaccess.
Doug, oddly the contact page works just now on my iMac but didn’t on my iPhone. To clarify, it always works if I write the URL out in full including the index.html.
Thanks Doug, that was how I understood it should work as well. I don’t know when this stopped working. We switched hosts last year, and shortly after moved to https. This is what we have for the htaccess file:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://auroraprint.ca/$1 [R=301,L]
Now you have a conflict. Port 80 (the normal port for http non-secure) is being redirected to a URL without www with a return code of 301.
You then have an SSLRequire set to go to a www address.
Most of what you have in your htaccess isn’t necessary.
Thanks Doug, this was given to me by someone else (can’t remember who). So I removed the www but what else should I change or remove? Or is there a better way of doing it?
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://auroraprint.ca/$1 [R=301,L]
I used the first one exactly as posted, and I now get the error on my site:
I remove the htaccess file completely for now. I also noted that without the htaccess file, the signup page still isn’t working if I just type in auroraprint.ca/signup so I wonder if I need to contact my host.