I came across a problem, I don’t know how to figure it out, there is a site on which there are files of goods, comments, reviews and so on. In each of the file, a get request is sent from a legal entity and when switching between files, the same legal entity remains to be redone:
товар site.ru/product/url комментарии site.ru/comment/url фото и 3д site.ru/photo/url etc where url is the address of the product
Нужно сделать : site.ru/url site.ru/url/photo site.ru/url/comment site.ru/url/photo работает это всё так: RewriteRule ^product/([^/]*)$ /ukr/product.php?url=$1 [L] RewriteRule ^product/([^/]*)$ /ukr/comment.php?url=$1 [L] RewriteRule ^product/([^/]*)$ /ukr/photo.php?url=$1 [L] passed if ($ _ GET ['product']) {$ product = $ _GET ['product'];
The task is about how on the outlet, switch between comments and so on. http://rozetka.com.ua/samsung_galaxy_j7_ds_black/p3818722/
RewriteRule ^([^/]*)/photo$ /ukr/photo.php?url=$1 [L]? - br3t