Hot answers tagged rewrite
Part of this is Magento related, another nginx. First the Magento part: you need to make sure you have the base_link_url set correctly for the store view. You should only need index.php in the sneakers directory, with the correct MAGE_RUN_CODE. As for nginx, you are telling it to pass all virtual requests to the root index.php, but all requests for ...
rewrite is a server internal operation; the user doesn't see the result (unless you expose it manually in some way). You could try the Content-Disposition header; but the best way is to fix your URLs (i.e. have .../foo.pdf from the beginning). You could use redirect rules for the migration.
Only top voted, non community-wiki answers of a minimum length are eligible