Hello! I do SEO optimization for one samopisny website. The site has products that are in the / products / folder, and a specific product, for example, / products / product_a /, also has some sort of sections (such as dividing products into styles) / products? Style = 1, and products with style = 1. I do not really want to climb into the wilds of Sam-Sapon CMS. I heard that it is possible to configure the CNC from htaccess so that similar pages (previously known) / products? Style = 1, / products? Style = 2, / products? Style = 3 in the URL look like / products / classik /, / products / modern /, / products / wood / etc. At the same time, nothing changes in the engine itself. Is it possible to configure such rules for previously known addresses or is it a myth?
Thank you in advance!
Created a local project, with one index.php
<?php switch ($_REQUEST["style"]) { case "0": echo "Class\n"; break; case "1": echo "Modern\n"; break; default: echo "not params \n"; }
?>
and .htaccess file
RewriteEngine On
RewriteRule ^ / classik / $ /? Style = 0 [L, QSA]
RewriteRule ^ / modern / $ /? Style = 1 [L, QSA]
mod_rewrite module seems to be loading http://joxi.ru/Z8Y8VIwyTJBfCbo-OFE but for some reason it does not work all the same. How can another rule be prescribed?