Steph40 Posted July 4, 2016 Share 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 Link to comment Share on other sites More sharing options...
Steph40 Posted July 5, 2016 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.