Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Steph40 Posted July 4, 2016 Posted July 4, 2016 Hey all, I am fairly new to nginx and I am having issues figuring out FURL with nginx. I have tried: location / { try_files $uri $uri/ /index.php; } location ~^(/page/).*(.php)$ { try_files $uri $uri/ /index.php; } BUt ngix won't restart Also tried: # Friendly URL "rewrite" rules location / { try_files $uri $uri/ @ips; } No luck What I am doing wrong. All I want is to not see the index.php? in the url. Steph
Steph40 Posted July 5, 2016 Author Posted July 5, 2016 Well I managed to fix it and get it to work with this: location / { try_files $uri $uri/ /index.php?$args; } But I had to remove this line to get it to work: location / { try_files $uri $uri/ =404; } Does that make any sense to someone with more nginx experience then me? Steph
Recommended Posts
Archived
This topic is now archived and is closed to further replies.