开发者

htaccess redirection

i want to redirect test.com/8/ to test.com/8 the number section is not fixed, so i n开发者_运维技巧eed something includes [0-9]*...


Try following:

RewriteEngine on
RewriteRule ^test.com/([0-9]+)/$ test.com/$1 [L,R=301]

Remember, flag R is important to force a external redirection

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜