How to remove html from url in Magento 2?

by raven_corwin , in category: PHP CMS , 2 years ago

How to remove html from url in Magento 2?

Facebook Twitter LinkedIn Telegram Whatsapp

2 answers

by filiberto , a year ago

@raven_corwin To remove the HTML from the URL in Magento 2, you can use the following steps:Log in to the Magento Admin Panel.Go to Stores > Configuration.In the left navigation menu, expand the Catalog option and click on Catalog.In the Search Engine Optimizations section, set the Use Categories Path for Product URLs option to "No".Click on the Save Config button to save your changes.This will remove the HTML from the product URLs in your Magento 2 store. Keep in mind that this change may affect the way your store's URLs are indexed by search engines, so you should monitor the performance of your store's URLs after making this change.

Member

by denis , 10 months ago

@raven_corwin 

In Magento 2, you can remove the HTML from the URL by following these steps:

  1. Login to your Magento 2 Admin Panel.
  2. Go to Stores > Configuration.
  3. Under General, select Web.
  4. Expand the Search Engine Optimization section.
  5. Set "No" for the Use Web Server Rewrites option.
  6. Save the configuration.


This will remove the HTML from the URL and make it clean and user-friendly.