Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect from not www doesn't work #244

Open
andreslucena opened this issue Jan 24, 2019 · 1 comment
Open

Redirect from not www doesn't work #244

andreslucena opened this issue Jan 24, 2019 · 1 comment
Labels

Comments

@andreslucena
Copy link
Contributor

🎩 User Story

When I go to https://www.decidim.barcelona/processes/metadecidim I get a redirection to https://decidim.barcelona/

This is important because we have a lot of documents (like PDFs that we can't change, it isn't on our control).

🎯 Acceptance criteria

It should redirect to https://decidim.barcelona/processes/metadecidim

@MohammedSalahadin
Copy link

@andreslucena , I had the same problem what I have done to work with both www and normal host is the following:

  1. Edit the Nginx config file
    sudo nano /etc/nginx/sites-enabled/decidim.conf

  2. in the first line for server name, make sure you have both domain names as following
    server_name www.example.com example.com;

  3. restart nginx : service nginx restart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants