开发者

Why 301-redirect doesn't work?

开发者 https://www.devze.com 2023-03-13 04:54 出处:网络
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]

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

精彩评论

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