AjuntamentdeBarcelona / decidim-barcelona

Decidim Barcelona - Direct and participatory democracy web platform based on Decidim framework
https://www.decidim.barcelona
GNU Affero General Public License v3.0
78 stars 24 forks source link

Redirect from not www doesn't work #244

Open andreslucena opened 5 years ago

andreslucena commented 5 years ago

:tophat: 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).

:dart: Acceptance criteria

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

MohammedSalahadin commented 3 years ago

@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