How to rewrite URL without redirect?
those. the user comes to site.ru/catalog/ , rewrite him a line in the browser on site.ru/irk/catalog/ , but display site.ru/catalog/ ?irk get irk in htaccess from RewriteCond %{HTTP_COOKIE} CITY=([^;]+) [NC]
Below is what I tried in htaccess, but now this site.ru/irk/catalog/ opened at site.ru/irk/catalog/ , and not site.ru/catalog/
RewriteCond %{REQUEST_URI} (^.)+ RewriteCond %{REQUEST_URI} !^/irk RewriteCond %{HTTP_COOKIE} CITY=([^;]+) [NC] RewriteRule ^(.*)$ /%1/$1 [L,R=302]