PHP header [removed] - what are the implications?

前端 未结 5 1987
暖寄归人
暖寄归人 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:23

    Search engines like 301 redirects better than a 404 or some other type of client side redirect, no worries there.

    CPU usage will be minimal, if you want to save even more cycles you could try and handle the redirect in apache using htaccess, then php won't even have to get involved. If you want to load test a server, you can use ab which comes with apache, or httperf if you are looking for a more robust testing tool.

提交回复
热议问题