title: How to implement if else condition in nginx configuration file through arguments
body: <p>My url is <a href="https://www.example.com/article_slug?amp=1" rel="nofollow noreferrer">https://www.example.com/article_slug?amp=1</a> (for amp pages) and for website url is <a href="https://www.example.com/article_slug" rel="nofollow noreferrer">https://www.example.com/article_slug</a></p>
  
  <p>How can i implement if else condition in server configuration file according to "?amp=1" through URL.</p>
  
  <p>Please help me</p>