Posted in
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
Add Comment
Other Items in nginx
Related Search Terms
Other Categories in Code
php functions
php functions
php functions