I was wondering if anyone know how to achieve this.
I have an index.php that loads a file page.php into a div using jQuery. This page.php has a link that when you click it loads page2.php into the same div(so the url always stays as index.php).
I want to make it so that, if you open the link on page.php in a new tab or window, instead of loading page2.php, it loads index.php(with page.php in the div). Same if you type in the link to page2.php directly into the browser.