Hi Spiceworks,

I know there’s a lot of topics on this issue already but just wanted a simply stated topic since it’s proving hard to find if a webdeveloper forces non www to the www version using htaccess redirects will that work?

Our internal domain is domain.tld as is our external website currently.

Thanks,

Andrew

3 Spice ups

Yup, should work. Would look a little something like this:

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.example.com [NC]
RewriteRule ^(.*)$ https://example.com/$1 [L,R=301]
2 Spice ups