header("Location: ../mobile/index.php");
Header function not working on child directory file. But it works perfect when using on a parent direcory file. can anyone know the reason ???
The problem was in the encoding of the php file. I have changed utf-8 to Unicode. Now Its working...
In index.php
you need use Location like that:
header('Location: /file_of_root_folder.php');
In the child directory you use normal:
header('Location: ../file_of_root_folder.php');
The change is in the root files. You need put /
before the file name.