Can’t it go to other pages when you’ve just reference it on the index page when you just click it will go to the other pages?? e.g on the Login and Signup??? must it be a redirect page??
It could be that you are going to the other pages, and they are redirecting you back to index.php. Could you post your code for login.php / signup.php?
What is the code that is generating this incorrect path?
In order for us to view the code properly, you need to format it. I’ve done it for you this time, but next time you paste in code, just place three backticks (`) on a line before the code, and three backticks on a line just after the code. Otherwise, especially your html will not show up.
Are you using any kind of framework that does some of your routing for you? I’m trying to see how a link to login.php could show up as index.php/login.php.
What happens if you use an absolute path instead of a relative path. In other words, instead of href="login.php", try href="http://localhost/auth/login.php". Of course, if you use your authentication system elsewhere, you would have to change that to something using a base url constant instead, so that it is more portable.