<div dir="ltr">Thank you.  That was indeed the issue.  Now  I can see the individual blog entries at /blog/slug-of-blog<div><br></div><div>but /blog and /blog/ urls are both throwing a 404.</div><div><br></div><div>Is that an easy fix?</div><div><br></div><div>-Randy</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 5:15 AM Reinis Rozitis <<a href="mailto:r@roze.lv">r@roze.lv</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">> I tried adding the following line in there in a couple different places but all it does is download the php file.<br>
> <br>
> location /blog { <br>
> rewrite ^/blog/([A-Za-z0-9-]+)/?$ /blog-article.php?slug=$1 break; <br>
> }<br>
<br>
Try to switch from 'break' to 'last'.<br>
<br>
By using 'break' it means that nginx stops the rewrite and also doesn't search for any other location so the request doesn't land in the 'location ~ \.php$' and is never processed by php.<br>
<br>
rr<br>
<br>
_______________________________________________<br>
nginx mailing list<br>
<a href="mailto:nginx@nginx.org" target="_blank">nginx@nginx.org</a><br>
<a href="http://mailman.nginx.org/mailman/listinfo/nginx" rel="noreferrer" target="_blank">http://mailman.nginx.org/mailman/listinfo/nginx</a><br>
</blockquote></div>