Hello, I have the following problem. I have an index.php page and when people visit the page I want to automatically redirect them to index.php?var=1
I tried to do this with the header location method, like this:
I inserted this code at the top of my page, but it didn't work. It DID work when I tried something like this:
then the redirection DID work.
Im not sure what I'm doing wrong and I hope someone can help me. Thanks in advance