Skip to content
Advertisement

How to redirect php file outside of the folder location?

Hello how do you redirect a page outside of the ‘Model’ folder because all my html files are outside of it. I want to redirect my page using this location

JavaScript

Example: I have a php folder inside the ‘Model’ folder name login.php so in order to redirect it to the index.html, I have to use header("Location: laurence/firstdaytraining/index.html"); but when I click enter this will be displayed

JavaScript

and the location is going to this path

JavaScript

Please help, how to redirect my page in this

JavaScript

but not this

JavaScript

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement