'link to path outside of localhost folder using href
Problem:
localhost folder is: D:\my_files\project\public
Web Server: Apache HTTP Server
so when I type http://localhost, it goes to D:\my_files\project\public
Structure:
/my_files/project/public/index.php
/my_files/project/src/tech.php
What I want:
<a href="/../src/tech/tech.php">Tech</a>
When clicking the link above it should take me to out of localhost folder inside src folder.
Solution 1:[1]
You can not access your folder like this since it is not in the Localhost folder. You have two solutions
- Change Localhost default folder to the parent folder:
myfiles/project
- Copy you test.php file to your current localhost folder, with all his dependiencies
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Brayan Tiwa |
