anyone can teach me where to change the product links??

for example i have a product named product1 and have a link of product1-productID.html.. my question is how can i change the link to productID.html only?? i find some answer but it doesn't fit my needs for example i'll leave the product name blank..that would accomplish the productID.html link but when you view the product common sense it has no product_name. how could i edit the links without erasing the product_name??

thank you so much