Nginx Server Block with Rewrite

Nginx Server Block with Rewrite

Here is a basic nginx server block with rewrite to the index.php file.

So it takes all the parameters and passes them into the index, into the variable $p or $_GET['p']

This is how the site rewrites everything rather than it being ?p=page&variable=somethingelse it goes to /page/somethingelse/ which looks much cleaner and is easier to type. 

Other Items in nginx
Page Views

This page has been viewed 240 times.

Search Code
Search Code by entering your search text above.

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.


Random Quote
You drown not by falling in the river, but by staying submerged.