Nginx: Rewriting entire URI to query string
- by Doug
Still pretty new to nginx here, trying to get a simple rewrite to work, but the server just responds '404 not found'
My server block
server {
listen 80;
listen [::]:80;
server_name pics.example.com;
root /home/pics;
rewrite ^(.*)$ index.php?tag=$1;
location / {
try_files $uri $uri/ $uri.php /index.html $uri =404;
#try_files $uri…