Posted in
12
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.
View Statistics
This Week
39
This Month
260
This Year
0
Add Comment
Other Items in nginx
Related Search Terms
Other Categories in Code
c testing apache apps asp bat bootstrap bootstrap templates core css css grid design elements fancybox fonts foundation framework gimp git html icons ideas images javascript jquery js linux mac nginx node php php functions php simple html dom pi400 python react sections site bugs site documentation sql sqlite sublime svg templates tools virtual box webdev windows wordpress