redirect if url contains specific string using htaccess

后端 未结 3 1337
故里飘歌
故里飘歌 2021-01-12 10:28

I want to redirect to different domain, 83answers.com if url contains forum string.

Like if my url is test.guru99.com/forum/xyxyxzz<

3条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-12 11:03

    Real answer that i maded code is

    RewriteRule ^(.*)string(.*)$ http://your.website.com [R=301,L]
    

    in place of string yoou can put your word

提交回复
热议问题