我的网站上有重写规则的问题:
列出链接错误404:
/premium-wordpress-themes/vnd.youtube01223
/premium-wordpress-themes/vnd.youtube456789
/premium-wordpress-themes/vnd.youtube12345
/premium-wordpress-themes/vnd.youtube321
我想将其重定向到/premium-wordpress-themes
。
.htaccess中的语法:
RewriteRule ^premium-wordpress-themes/vnd(.*) http://serverthemes.net/premium-wordpress-themes [R=301,L]
但它不能正常工作
用
Redirect 301 /premium-wordpress-themes/vnd.youtube01223 http://serverthemes.net/premium-wordpress-themes
然后它有效。
帮助我!