Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted December 2, 20186 yr Hi, I've moved my community (+ Wordpress) to another host. I went from Apache to Nginx. Everything looks to be working except for the 'friendly url'. I know Nginx doesn't support htaccess but i don't know the solution. If i disable the friendly url setting the community works fine...but all my links are broken. Please advise. Thanks, Ronald
December 2, 20186 yr Add this to the Nginx configuration. You may need to contact your host to do it. location / { try_files $uri $uri/ /index.php?$args; } If your IPS suite is not in the document root then modify the paths accordingly: location /path-to-ips { try_files $uri $uri/ /path-to-ips/index.php?$args; }
December 3, 20186 yr Just a followup.... if you want to use the REST API, that will likely need its own "try" parameter block. Here's the two lines I use in my nginx config file (I'm using Openmediavault and its nginx plugin) location / { index index.html index.php; try_files $uri $uri/ /index.php?$args; }location /api/ { index index.html index.php; try_files $uri $uri/ /api/index.php?$args; }
Archived
This topic is now archived and is closed to further replies.