Nginx Redirect when URL includes variable p=1
- by ChrisD
Need to write a small nginx rewrite line(s) to alter/301 redirect some URLs within our existing website.
for example:
www.example.com.au/pageone.html?p=1 to www.example.com.au/pageone.html
www.example.com.au/pagetwo.html?dir=asc&limit=200&order=price&p=1 to www.example.com.au/pagetwo.html?dir=asc&limit=200&order=price
…