External Publication
Visit Post

Redirect www for subdomains?

InfinityFree Forum [Unofficial] March 18, 2026
Source

The Redirects tool in the control panel and client area can only be used to redirect to other websites. The www/non-www redirect must be done in another way.

If your website itself has functionality to do this, then I would recommend to just use that.

If it doesn’t, then you can setup this redirect with custom .htaccess rules. We have a few different community guides with examples for this:

How to force away from / to www Community Guides

There are many ways to force www/non www, but this way requires to create/edit .htaccess file (htdocs/.htaccess or yoursite.dom/htdocs/.htaccess) Forcing away from www. RewriteEngine on RewriteCond %{HTTP_HOST} ^www.yoursite.dom [NC] RewriteRule ^(.*)$ http://yoursite.dom/$1 [L,R=301]                                           ^^ changing that to https forces away from www. and also forces https encryption Forcing to www. Its basically th…

.htaccess Examples Community Guides

.htaccess Guide! htaccess file allows you to set server configurations for a specific directory. This could be the root directory for your website or an /images or /downloads directory. It is used on the Apache web server. It can also be used on a handful of other web servers… I’m going to give you a mini-guide on htaccess. Hope you find it useful! Warning: BEFORE you edit your .htacces file, store a copy of it in case you mess it up! Redirect to https RewriteEngine On RewriteCond %{HTTPS} …

Discussion in the ATmosphere

Loading comments...