Can't dirrect to file after login

Hi guys help me i have a login file that directed to home after a user success doing login but it can’t go to home as i expected
it works at xampp but it doesn’t work at this hosting website
instead directed to home it makes the form just disappear

Try adding

php_flag output_buffering on

To .htaccess file