New answers tagged

0

Yes, you do need to add the 's'. Specifically to this line: RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] You can't redirect all visitors to HTTPS when you explicitly redirect them to HTTP! At a minimum, you need RewriteRule ^(.*)$ https://example.com/$1 [R=301,L] I suggest you look over lines 262 to 413 of this file https://github.com/h5bp/server-...


-1

my domain registration is at hostway but my website is at squarespace. In managing the DNS I put a CNAME record for just my domain without the www under the source and put the website as the destination with a TTL of 14400 so it looks like this: 14400 example.com my-squarespace.example no @ or www for the host just the domain name. Now when I go to ...


0

To implement a redirect, your www subdomain must resolve to a web server that issues a redirect to your non-www domain. It doesn't matter whether you use A records or CNAME records to make that happen. A DNS CNAME is not a redirect. It just says that the IP address resolves to the same IP address as some other host name. Because of this using a CNAME is ...


Top 50 recent answers are included