{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreifdzk6zu5gf2xwb7z6shjjudirjbngozu37hddci6ironwrbqsdoy",
"uri": "at://did:plc:qfsyszxhq5agxsg2n5zo4lno/app.bsky.feed.post/3mheidr6yrr22"
},
"path": "/t/redirect-www-for-subdomains/118017#post_3",
"publishedAt": "2026-03-18T12:40:01.000Z",
"site": "https://forum.infinityfree.com",
"tags": [
"How to force away from / to www",
"Community Guides",
"to create",
".htaccess Examples"
],
"textContent": "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.\n\nIf your website itself has functionality to do this, then I would recommend to just use that.\n\nIf it doesn’t, then you can setup this redirect with custom .htaccess rules. We have a few different community guides with examples for this:\n\nHow to force away from / to www Community Guides\n\n> 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…\n\n.htaccess Examples Community Guides\n\n> .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} …",
"title": "Redirect www for subdomains?"
}