After login I’m trying to redirect the user based on their user role to their specified page. I tried redirect and header but both is not working for me in the server.
I’m getting this error
Cannot modify header information - headers already sent by (output started at /home/deheal/public_html/dev/index.php:2)
This all working perfectly in the local but not in the server please help me.
Thanks in advance.