Imagine that I have following folders and files:
- folder_a/
- file_a.php
- folder_a1
- img_a1.png
- folder_a2/
- file_a2.php
Is there a way that I can write only one route to img_a1.png no matter if I am on file_a.php or file_a2.php?
This is what I'm doing now:
To access img_a1.png from file_a.php:
<img src="folder_a1/img_a1.png"/>
To access img_a1.png from file_a2.php:
<img src="../folder_a1/img_a1.png"/>