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

winforms - C# Form - Property Change -

java - Messages from .properties file do not display UTF-8 characters -

javascript - amcharts makechart not working -