PHP url rewriting using htaccess

前端 未结 1 1952
轮回少年
轮回少年 2021-01-17 03:59
http://www.example.com/justridesbeta/jstride/vehicle

to

http://www.example.com/justridesbeta/addride

using htacc

1条回答
  •  死守一世寂寞
    2021-01-17 04:17

    if ($_SERVER['REQUEST_URI'] == '/justridesbeta/jstride/vehicle')
    {
        header("Location: http://www.example.com/justridesbeta/addride");
        exit;
    }
    

    if you really need that

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