Why is my .htaccess not working when uploaded to a Pantheon server? My drupal site has a .htaccess file on which I am redirecting the page without changing the URL.

It's working fine on local server &amp; other servers but when I upload the files &amp; databases to pantheon server It will not redirect the page saying 404 not found. I placed .htaccess at the root of code folder, I tried placing it in server root folder, sites/ folder &amp; themes/ folder but nothing works for me.

Does anybody know what is the correct placement of .htaccess in a Drupal site on Pantheon? And why my .htaccess is not working on Pantheon?
Because Pantheon servers use Nginx, and they don't enable .htaccess support.

You should contact them directly to discuss your options (if you're lucky and/or have a high enough subscription they'll probably add some custom rules to the nginx conf for you).