I would want that when the page is requested domen.ru/old/***/ the page that opens domen.ru/new/***/ but the url was still the old name.
htaccеss looks like this:
RewriteEngine On RewriteRule ^old/([a-zA-Z]+)/$ https://%{HTTP_HOST}/new/$1/ [L] # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress
When you open pages view domen.ru/old/primer/ 302 redirect is happening, which I don't need. Why?