Answer the question
In order to leave comments, you need to log in
Why is RewriteRule causing an unwanted redirect?
I want that when requesting the domen.ru/old/***/ page, the domen.ru/new/***/ page opens, but the url remains the same.
htaccess looks like this:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^old/([a-zA-Z]+)/$ https://%{HTTP_HOST}/new/$1/ [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question