Я пытаюсь выяснить, как перенаправить путь моего URL с
https://myweb.new.example.com/issues/?filter=111
на
https://myweb.new.example.com/login.jsp?os_destination=%2Fissues%2F%3Ffilter%3D111
, нокод ниже, похоже, ничего не делает.Я запустил apachectl configtest, Синтаксис в порядке, и я перезапустил службу apache2.Кто-нибудь может мне помочь?Я не уверен, что я делаю неправильно.Спасибо.
<VirtualHost *:80> ServerName myweb.new.example.com ServerAlias myweb.new.example.com Redirect / https://myweb.new.example.com </VirtualHost> <VirtualHost *:443> ServerName myweb.new.example.com RewriteEngine On RewriteCond %{QUERY_STRING} ^/issues/?filter=([0-9]*)$ RewriteRule ^login.jsp?os_destination=%2Fissues/?filter=([0-9]*)$ https://myweb.new.example.com/%1 [R=302,L] </VirtualHost>