i have managed to firgure out a rule but i still get a 404 error location /blog { rewrite ^/(+) /article.php?slug=$1; }by J4rVan - How to...
Hi, i want a single php script to handle all incoming requests to my /blog directoy. The php script checks wether a SQL record exists for the url (i.e. www.example.com/blog/example_article). If a record is found it serves the corresponding page data. If there is no record for a url (i.e. www.example.com/blog/nothing_here) it redirects to 404. I need a rewrite rule in nginx for that. My curreby J4rVan - How to...
![]() |
![]() |
![]() |
![]() |
|