我正在尝试在Apache(通过XAMPP运行)中重写传入请求的端口,但是无论我做什么,它都无法正常工作。我想从这样重定向所有传入请求-https://qr-radec-minus.dot/cp.tms.fe/services/M0780UPPQueryPort?wsdl至https://qr-radec-minus.dot:16262/cp.tms.fe/services/M0780UPPQueryPort?wsdl
下面是我徒劳尝试的不同重写模块规则-
RewriteRule ^/(?!qr-radec-minus\.dot)(.*) https://qr-radec-minus.dot:16262$1
#RewriteCond %{HTTP_HOST} ^qr-radec-minus\.dot$ [NC]
#RewriteRule ^(.*)$ https://qr-radec-minus.dot:16262$1 [R=301]
#RewriteCond %{HTTP_HOST} ^qr-radec-minus\.dot:443$ [NC]
#RewriteCond %{SERVER_PORT} ^443$
#RewriteRule ^(.*)$ https://qr-radec-minus.dot:16262/$1 [L,R=302]
#RewriteCond %{SERVER_PORT} !^16262$
#RewriteRule ^(.*)cp\.tms\.fe/?$ https://%{HTTP_HOST}:16262/$1 [R=301,L]
#RewriteRule ^/(?!qr-radec-minus)(.*) https://qr-radec-minus.dot:16262/$1 [R,L]
提前感谢!