How to install Discourse in WWW

I can install discourse in example.com but I want to use the www version.
If someone visits example.com they should redirect to www.example.com.

Should I need to use www.example.com as hostname?

NB: I know it’s a basic question but I’m new to cloud computing. I’ll be thankful if you guys can help me.

Thanks in advance.

When creating the A DNS entry on your domain provider, create it under the www subdomain instead of the root.

After that, when running ./discourse-setup part of the Discourse official Standard Installation pass the domain with the www. part too.

2 Likes

See http://forcewww.com/ for a simple solution. There are others.

2 Likes

I found the solution. And I’ve pointed the installation to the discourse forum using www

2 Likes