网络营销电子商务研究中心  
USA Web Hosting Direct
Go Back   网络营销电子商务研究中心 > 网站建设 > Magento 2
User Name
Password
 
FAQ Members List Calendar 域名注册 PHP Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1   IP: 199.115.98.60
Old 2017-03-22, 08:59 PM
Patterson Heights Patterson Heights is offline
初级会员
 
Join Date: 2010-04-05
Posts: 2
Patterson Heights 现在声名狼藉
Default Magento 2: Product URL Suffix, say .html

How do I remove the .html suffix from the product pages?

The .html suffix only seems to appear on the product pages. The CMS pages don't show .html, nor does the home page


Categories should also show .html - would you like to remove it or change it?
Reply With Quote
  #2   IP: 199.115.98.60
Old 2017-03-22, 09:01 PM
Lake and Peninsula Borough Lake and Peninsula Borough is offline
初级会员
 
Join Date: 2007-11-23
Posts: 1
Lake and Peninsula Borough 现在声名狼藉
Default

Open your admin panel navigate on Stores->configuration->Catalog click on catalog search tab

Here you can remove

Product URL Suffix =

Category URL Suffix =

enter image description here

Make these fields blank (remove .html from both fields) save the config and reindex and clear cache of your store. it's done!
Attached Images
File Type: jpg 8.jpg (15.1 KB, 1 views)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Magento URL Rewriting Tutorial Cherryvale Magento 0 2017-03-13 10:43 AM
How to setup a Blog in Magento Alcester Magento 0 2016-10-14 01:20 PM
How do Product Type files work (Programmer View) Indian River Shores ZenCart 0 2016-08-16 08:34 AM
Adding a new Product Type in Zen Cart Illinois City ZenCart 0 2016-08-16 08:31 AM
Add a pop-up information box to describe a product option Randy X-Cart 1 2015-12-02 07:51 PM

Prescription-glasses.com offers prescription glasses online at discount prices.
所有时间均为 +8. 现在的时间是 09:29 PM, Free Patent & Patent Ideas