Removing index.php from Magento URL Using Apache or Nginx

Removing index.php from Magento URL Using Apache or Nginx
In order to hide index.php in apache or nginx there are 2 steps involved, we don’t need to change any Magento files.
Step 1
a) For apache server
If you are using apache, check this code is present in magento .htaccess:

b) If you are using nginx server, make sure to add this to your vhost configuration:

After changing the nginx vhost file, you need to reload nginx configuration.
sudo service nginx restart

Step 2

After changing config on Server go to Magento admin and do following changes.

System > Config > General > Web
> Search Engines Optimization > Use Web Server Rewrites > YES

Now you have successfully hide index.php from Magento.

(Visited 104 times, 1 visits today)