I have the link: www.mysite.com/jobs/stackoverflow
And I want to get this link using a relative file path: www.mysite.com/jobs/stackoverflow/123
Right now I am getting the current url using PHP and then appending '/123' onto the end of the 'href' value to access the subfolder. This method works but I was wondering if there is a way to write a relative link that will link to a subfolder. At first I thought it would be as easy as typing:
<a href="123">Link</a>
but that replaces the 'stackoverflow' part rather than appending it onto the end.
I'm fine with using the PHP solution and I am not looking for a javascript or jQuery solution, I was just curious to see if there was a simple way to do this using only HTML.