How to turn off URL Rewrite in Mangeto2

May 17, 2013   //   by kdecom   //   magento, magento2, magento2-tutorial  //  No Comments

How to turn off URL Rewrite in Mangeto2

When i was developing magento2 extension it is always good to turn off url rewrite in magento.

What is the difference between turn on url rewrite and turn off url rewrite?

Turn On URL Rewrite PRODUCT PAGE:-

http://www.kdecom.com/mage2/index.php/living-room-furniture.html

Turn off URL Rewrite PRODUCT PAGE:-

http://www.kdecom.com/mage2/index.php/catalog/product/view/id/3/s/my-shoes-1/category/5/

If you have turn off magento2 url rewrite then you will know exactly which module and which controller and which action magento execute from above url you will know it will execute Mage_Catalog module, ProductController.php and viewAction from that file.

In magento2 admin panel:

store-> setting -configuation -> catalog -> catalog ->search engine optimization

And turn off the url rewrite.

Next i did went on front end and check it that is it working for me? But unfortunately answer was no.

So finally i have to open up PhpMyAdmin and check the magento2 core_url_rewrite table and all the data was inside the table.

then i did execute

TRUNCATE core_url_rewrite;

Now i went on frontend and it starts working.

Finally..

Simply if you want to turn off magento2 First thing you will do is:- turn off url rewrite in admin panel. Then you have to truncate the core_url_rewrite table from magento2 database.

Leave a comment

css.php