title: magento 2 website not working after deployment from nginx to apache2
body: <p>My website is work fine here <a href="http://novastore.aaartise.com/" rel="nofollow noreferrer">development site</a></p>
  
  <p>which is on <strong>nginx server php version 7.1</strong></p>
  
  <p>But when i deployed here <a href="http://www.novastore.sg/" rel="nofollow noreferrer">production site</a>
   it gives me error like <strong>add to cart functionality, unnecessary index.php link</strong> on url (note production site uses <strong>apache2 server with php version 7.1</strong>).</p>
  
  <p>what I did was while moving to production I made changes as follows  :-</p>
  
  <ol>
  <li><p>changed database setting from app/etc/env.php</p></li>
  <li><p>in database changed unsecure and secure URL's from
  "soft_core_config_data" table</p></li>
  <li><p>did following changes in "soft_core_config_data" table</p>
  
  <p>a. Search - dev/static/sign to 0 <em>(number zero)</em></p>
  
  <p>To make admin accessible</p>
  
  <p>b. Search - web/seo/use_rewrites - 0 in <em>(number zero)</em></p></li>
  </ol>
  
  <p>Added command to the root folder of the project :-</p>
  
  <ol>
  <li><p>sudo chmod -R 777</p></li>
  <li><p>php bin/magento setup:di:compile</p></li>
  <li><p>php bin/magento setup:static-content:deploy -f</p></li>
  </ol>
  
  <p>4 .php bin/magento cache:flush</p>
  
  <p>5 .php bin/magento cache:clean</p>
  
  <p>6 .rm -rf var/cache var/view_preprocessed var/page_cache
  generated/</p>