开发者

htaccess redirection

开发者 https://www.devze.com 2023-01-08 23:35 出处:网络
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:

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

精彩评论

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