php - Rewrite Subdirectory to URL String with Episerver Platform -


I need to create a rule that defines the sub-directory "" of the URL string To prevent duplicate URLs, the product ID number was added at the end of all the URLs, but it should not be in their own folder. The platform episode is an example:

  www.example.com/products/blue-to/2324 www.example.com/products/hair-spray/3374  

  www.example.com/products/blue-to-2324 www.example.com/products/hair-spray-3374  
< / Div>

You can use this rule as your first rule in your root. Htaccess:

  RewriteEngine On RewriteRule ^ (Products) / ([^ /] +) / ([0- 9] +) /? $ / $ 1 / $ 2- $ 3 [L, NC, R = 302]  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -