Posted in nginx
128
11:16 pm, March 29, 2020

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. 

Nginx Server Block with Rewrite Demo

View Demo Full Screen View Demo New Tab

Nginx Server Block with Rewrite Code

Related Tags

No Items Found.

Add Comment
Type in a Nick Name here
 
Other Items in nginx
Related Search Terms