重写规则不适用于serverthemes.net

时间:2014-08-15 04:58:54

标签: wordpress .htaccess mod-rewrite

我的网站上有重写规则的问题:

列出链接错误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

然后它有效。

帮助我!

0 个答案:

没有答案