开发者

Apache redirect help

I am trying to redirect using a query string and have had no luck...

I am trying to redirect

http://www.mysite.com/search/somevalue.html

to

开发者_运维知识库http://www.mysite.com/search-somevalue/1.html

somevaluebeing the query string so whatever value is it will redirect to the new page... any help will be appreciated...


I found the answer so I will answer my question for anyone looking for a similiar answer...

RedirectMatch 301 /search/(.*).html /search-$1/1.html
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜