We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

.htaccess redirect from www to non-www not working in Firefox?

more options

.htaccess redirect

RewriteCond %{HTTP_HOST} ^www\.ice\-warrior\.com$ RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^/?$ "https\:\/\/ice\-warrior\.com\/" [R=301,L]

Not working in Firefox - works on all other browsers. SHould redirect https://www.ice-warrior.com to https://ice-warrior.com

.htaccess redirect RewriteCond %{HTTP_HOST} ^www\.ice\-warrior\.com$ RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$ RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$ RewriteRule ^/?$ "https\:\/\/ice\-warrior\.com\/" [R=301,L] Not working in Firefox - works on all other browsers. SHould redirect https://www.ice-warrior.com to https://ice-warrior.com

All Replies (2)

more options

You could try empty your cache and delete cookies for site/s That has worked in the past. Not sure how google likes it but you can place in the <head> a <meta http-equiv=</> to redirect to the page or a 302 Redirect Have you checked with the server support team and also looked at the .htaccess file to see if corrupted ?

Is this something new you are setting up or is this a existing site that worked before any Firefox updates ?

Modified by Shadow110

more options

I get:

Your connection is not secure

[Advanced panel]

www.ice-warrior.com uses an invalid security certificate. The certificate is only valid for the following names: earth-warrior.com, ice-warrior.com Error code: SSL_ERROR_BAD_CERT_DOMAIN

So in that case, because there's no connection, Firefox does not get the redirect. Neither does Internet Explorer 11. (I'm curious why Chrome doesn't have this issue; they may have some special workaround for this situation?)

It's a little odd because Comodo usually gives you both the base domain and the www subdomain. Not sure if they'll "fix it for free" or whether you need some kind of Plan B to resolve this.