我在1个网页上有2个网址(1个htaccess),你能帮助我在这个网站上永久重定向(mod_rewrite)2个子页面到另一个网址吗?
呜呜呜.something.操作/hello/ -> 呜呜呜.first.操作/#ID WWW.something.上课/hello/ -> 呜呜呜.second.上课/some URL/#ID
谢谢。
RewriteEngine On
RewriteCond %{HTTP_HOST} something.cz [NC]
RewriteRule ^/?hello/ http://www.first.cz/#id? [R=301,L]
RewriteCond %{HTTP_HOST} something.sk [NC]
RewriteRule ^/?hello/ http://www.second.sk/someurl/#id? [R=301,L]
在评论中报告反馈