1

I have website made using HTML5, CSS, PHP and jQuery (with AJAX).

URL, when I visit home page is like http://www.example.com, which is fine. But when I visit a different page (which loads using AJAX with help of jQuery), URL is still same (so http://www.example.com).

It's not even displaying how it normally would (example.com/index.php or example.com/partials/somethingelse.php).

I would like to display home page as it is now (example.com) and other sites that are inside folder partials like example.com/somethingelse.

  • 1
    possible duplicate of [Modify the URL without reloading the page](http://stackoverflow.com/questions/824349/modify-the-url-without-reloading-the-page) – George Jul 22 '15 at 13:13
  • You can use some routing helper like [History.js](https://github.com/browserstate/history.js/) – Hitendra Jul 22 '15 at 13:14
  • Check this: https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Manipulating_the_browser_history – Mindastic Jul 22 '15 at 13:17

0 Answers0