开发者

Why 301-redirect doesn't work?

I need make redirect from site/article to site/article/

I use this rule in .htaccess

RewriteRule ^/article(.*)$ http://balttranscom.ru/art开发者_StackOverflowicle/$1 [R=301,L] 

but it's not work!

Help!


As shown at the bottom of the mod_rewrite documentation page, rules in .htaccess files aren't passed an initial slash.

RewriteRule ^article(.*)$ http://balttranscom.ru/article/$1 [R=301,L]


Do you have the following line?

RewriteEngine On
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜