rewrite ^(/*/.*)/portname=(.*) https://<ip_raritan>/dpa.asp?portname=$2&username=user&password=password last;
https://<ip_raritan>
. Тогда перенаправление будет внутренним и не будет редиректа с кодом 302 и в браузере URL не будет меняться.rewrite ^(/.*)/portname=(.*) /dpa.asp?portname=$2&username=user&password=password last;
если после product_id=894 есть какое-то значение
product_id=[0-9]+[^0-9]
или product_id=\d+\D
RewriteCond %{QUERY_STRING} ^(route=product/product&path=\d+&product_id=\d+)\D
RewriteRule ^index\.php$ /index.php?%1 [R=301,L]
RewriteCond &%{QUERY_STRING}& ^(?=.*&(route=product/product)&)(?=.*(&path=\d+)&)(?=.*(&product_id=\d+)[^&\d])
RewriteRule ^index\.php$ /index.php?%1%2%3 [R=301,L]
str.replace(
/(?:(?<=<div\s+class="dialog__row_\d+">)|{([A-F\d]{6})})\s*([^\s<{][^<{]*)/g,
function () {
arguments.callee.color = arguments[1] || arguments.callee.color;
return `<span style="color:#${arguments.callee.color}">${arguments[2]}</span>\n`
}
)
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(?>www\.|)(.+)\.site\.ru$ [NC]
RewriteRule ^en/$ https://site.ru/en/%1/ [R=301,L]
RewriteCond %{QUERY_STRING} !=""
RewriteCond %{THE_REQUEST} \?
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{THE_REQUEST} \?
RewriteCond %{QUERY_STRING} !^p=.*
RewriteCond %{QUERY_STRING} !^s=.*
RewriteCond %{REQUEST_URI} !^/wp-admin.*
RewriteRule ^(.*)$ /$1? [R=301,L]
</IfModule>
RewriteEngine on
RewriteRule ^ https://xn--m1aabangb.xn--p1ai/ [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(?:www\.|)sto-tonn\.ru [NC]
RewriteRule ^ https://xn--m1aabangb.xn--p1ai/ [R=301,L]
RewriteRule ^results/$ /results.php [L]
rewrite ^/results/$ /results.php last;
^\d\d(?:[ .,]\d\d?)*$
^\d\d(?:([.,])\d(?:\d(?:\1\d\d?|)|)|)(?: \d\d(?:([.,])\d(?:\d(?:\2\d\d?|)|)|))*$
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)\.xml$ $1.html [L]