开发者

Regex question for htaccess redirect

I need to redirect

http://mydomain.com/2011/09/anything

(where 2011 is any year, and 09 is any month, and anything is anything!)

over to:

http://mydomain.com/special-folder/any开发者_C百科thing

Could someone help me out with the regex for this?

Thanks in advance.


\/[0-9]{4}\/[0-9]{1,2}\/(.*)$    http://mydomain.com/special-folder/$1
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜