I want to redirect the user when he visits the homepage.
So if he goes to example.com, Of course if there is http,https,www or visiting from google, He should be redirected to example.com/#element
.
I can't use:
header()
Because the website is built with CodeIgniter and I can't get the right php file.
Either:
window.location
As I don't want to rely on the client side.