URL-Rewrite – Strip index.php from Magento Nginx GitHub Configuration

ce-1.9.2.2nginxurl-rewrite

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;
    }

Best Answer

You need to go to

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

enter image description here

Related Topic