V
V
Vetya2018-10-22 17:25:36
htaccess
Vetya, 2018-10-22 17:25:36

Redirect 301 ruslat url how to set up?

Good afternoon, I've been rummaging all day but I can't find a solution. It is
necessary to make a 301 redirect from the Cyrillic link of the lat domain - https://psocenka.ru/our-services/estimation-residential-real estate... to /ocenka-doli-v-kvartire/
Tried so
Redirect 301 /%D0%BD%D0%B0%D1%88%D0%B8-%D1%83%D1%81%D0%BB%D1%83%D0%B3%D0%B8/%D0%BE %D1%86%D0%B5%D0%BD%D0%BA%D0%B0-%D0%B6%D0%B8%D0%BB%D0%BE%D0%B9-%D0%BD%D0%B5 %D0%B4%D0%B2%D0%B8%D0%B6%D0%B8%D0%BC%D0%BE%D1%81%D1%82%D0%B8/%D0%BE%D1%86% D0%B5%D0%BD%D0%BA%D0%B0-%D0%B4%D0%BE%D0%BB%D0%B8-%D0%B2-%D0%BA%D0%B2%D0%B0 %D1%80%D1%82%D0%B8%D1%80%D0%B5/ https://psocenka.ru/ocenka-doli-v-kvartire
and so
RewriteEngine On
RewriteCond %{REQUEST_URI} /%D0%BD%D0%B0%D1%88%D0%B8-%D1%83%D1%81%D0%BB%D1%83%D0%B3%D0%B8/%D0 %BE%D1%86%D0%B5%D0%BD%D0%BA%D0%B0-%D0%B6%D0%B8%D0%BB%D0%BE%D0%B9-%D0%BD%D0 %B5%D0%B4%D0%B2%D0%B8%D0%B6%D0%B8%D0%BC%D0%BE%D1%81%D1%82%D0%B8/%D0%BE%D1% 86%D0%B5%D0%BD%D0%BA%D0%B0-%D0%B4%D0%BE%D0%BB%D0%B8-%D0%B2-%D0%BA%D0%B2%D0 %B0%D1%80%D1%82%D0%B8%D1%80%D0%B5/ [NC]
RewriteRule .* /ocenka-doli-v-kvartire/ [L,R=301]
not working
Please help

my htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# this domain should only be contacted in HTTPS for the next 12 months
Header set Strict-Transport-Security "max-age=31536000" env=HTTPS
# BEGIN rlrssslReallySimpleSSL rsssl_version[2.5.22]
RewriteEngine on
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
# END rlrssslReallySimpleSSL
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
dodo512, 2018-10-22
@Vetya

The string with which the RewriteRule works is already normalized and everything is decoded there%XX
Add .htaccess to the beginning and save the file in UTF-8 encoding without BOM.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question