Hello Im trying to add a default url when entering a website for example:
From this
http://example.com
To this
http://example.com/defaultUrl/
I have tried doing this with JavaScript in the beggining of the page but it just causes an infinite loop and I dont think it's very secure. Is where anyway to do this with PHP? I HAVE TRIED the header() function TOO but it just causes an infinite loop of redirects.