PHP header [removed] - what are the implications?

前端 未结 5 1979
暖寄归人
暖寄归人 2021-02-01 12:18

I have domain.com. If the user is logged in, it should load automatically domain.com/option-X where X is a predefined choice of the user.

5条回答
  •  粉色の甜心
    2021-02-01 13:14

    This is better:

    
    

    Just one call including code 301. Also notice the relative path to the file in the same directory (not "/dir/dir/new_page.php", etc.), which all modern browsers seem to support.

    I think this is valid since PHP 5.1.2, possibly earlier.

提交回复
热议问题