1
我想以下网址如何使用htaccess重定向此URL?
http://www.example.com/friends/view.php?l=ka&id=21903
进入这个页面
http://www.example.com/hello.html
我怎样才能做到这一点使用htaccess的重定向?
我想以下网址如何使用htaccess重定向此URL?
http://www.example.com/friends/view.php?l=ka&id=21903
进入这个页面
http://www.example.com/hello.html
我怎样才能做到这一点使用htaccess的重定向?
您可以使用htaccess的以下规则:
RewriteEngine on
RewriteCond %{THE_REQUEST} \s/friends/view\.php\?l=ka&id=21903\s [NC]
RewriteRule^http://example.com/hello.html? [L,R]