我有一些要求
blogs.bobvilapaint.com/11/11/2011/title
我想redirect到
staging.bobvila.com/blogs/title
我写了
RewriteRule ^ [0-9 /] + / [0-9] + / [0-9] + /(。*)$ http://staging.bobvila.com/blogs/$1 [R,L]
但不是被redirect到
staging.bobvila.com/blogs/title
它被redirect到
staging.bobvila.com/title
所以我不明白为什么redirect规则把它重新定向到新服务器上的“博客”目录。
正则expression式可能不正确,
试试这个:
RewriteRule ^ [0-9 /] + / [0-9] + / [0-9] + /(。*)http://staging.bobvila.com/blogs/ $ 1 [L]
让我知道如果它的作品。