3

I am currently on a Magento-1.9.2.2 with Nginx 1.6.2 and using Magento Nginx Github Conf and

shop.com takes me shop.com
But if I click any link, I see a structure like:
shop.com/index.php/category1
shop.com/index.php/product-details-1

How could I get rid of the index.php without breaking some other parts of the shop?

location / {
            index index.html index.php;
            try_files $uri $uri/ @handler;
            expires 30d;
    }

location @handler { ## Magento uses a common front handler
            rewrite / /index.php;
    }

migrated from serverfault.com Dec 1 '15 at 9:18

This question came from our site for system and network administrators.

  • 1
    I'm about 99% sure this is a Magento setting called something like "Use Web Server Rewrites", not an nginx setting. – Michael Hampton Dec 1 '15 at 9:16
  • Oh .. yes, indeed. And I was searching for the problem in the NGinX conf :-S Thank you :) – Chris Dec 2 '15 at 2:34
3

You need to go to

System->Config->Web->Search Engine Optimization

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.