i am new to Nginx and i want to do simple URL rewrite but i don't know how to do it. I want to my link look like this: **localhost/some/path/to/file** and real link is: **localhost/index.php?url=/some/path/to/file**. Please help.
Asked
Active
Viewed 141 times
0
Shanu k k
- 1,215
- 1
- 16
- 37
fr33jumper
- 83
- 2
- 11
-
1Possible duplicate of [How to write a url rewrite in nginx?](http://stackoverflow.com/questions/4329316/how-to-write-a-url-rewrite-in-nginx) – Joucks Jan 31 '17 at 10:13
-
Do you have a working PHP configuration? Edit you question and add more details, such as the nginx `server` configuration block. – Richard Smith Jan 31 '17 at 11:32