我正在尝试重定向单个 URL
喜欢http://tracker.niresh.co:12495/announce到http://tracker.niresh.co/announce.php
我怎样才能通过 htaccess 使其工作?
答案1
RewriteEngine On
RewriteCond %{SERVER_PORT} 12495
RewriteCond %{REQUEST_URI} ^/announce
RewriteRule (.*) http://tracker.niresh.co/announce.php