Dave
Dave

Reputation: 12467

Deploying meteor app to domain and aliases

Is it possible to deploy the same meteor app to a domain and its aliases? For example, myapp.com and www.myapp.com

Right now if I deploy to myapp.com, www.myapp.com will say

There is no site deployed at this address.

So I'm wondering if meteor deploy can accept multiple domains (myapp.com, www.myapp.com, etc). Or if there's any alternative method.

Upvotes: 2

Views: 453

Answers (2)

Olivier Gourment
Olivier Gourment

Reputation: 1527

Yes, you can do it using your DNS host's domain forwarding. See Meteor.js deploy to "example.com" or "www.example.com"?

You're welcome '-)

Upvotes: 0

Dave
Dave

Reputation: 12467

Two good solutions:

Use domain forwarding if your DNS host allows.

Or

Create and deploy a simple meteor project to redirect from one domain to another (e.g. www.myapp.com to myapp.com). You can do a simple browser redirect (window.location). Or, you can use the meteorite Router package to do a server redirect.

Upvotes: 1

Related Questions