Redirect website to Mobile version website using htaccess

后端 未结 1 1919
春和景丽
春和景丽 2021-01-24 10:21

HI i have used the following code to redirect to mobile website.It works fine from mobile to mobile website, domain.com to m.domain.com in mobile, but \"?id=9\" at the end of ur

1条回答
  •  一向
    一向 (楼主)
    2021-01-24 10:56

    To strip query string append ? in the target URL like this:

    RewriteRule ^ http://m.example.com%{REQUEST_URI}? [R,L]
    

    0 讨论(0)
提交回复
热议问题