I am building an AJAX deep-linked site.
I looked into PHP's
Why I want the site to have this behavior.
Since I want the home page to load just by loading the address:
, which does not send any query to PHP, PHP returns the HTML code of the home page. This however causes issues when the user tries to load the following page:
, home page will be returned.
I am using SWFaddress (http://www.asual.com/swfaddress/
) library for the deep-linking.
Thank you guys. I did not think of using
Here is what I decided to do. PHP by default will load pages such as
(which is essentially the same as
from PHP's point of view since fragments by definition are not sent to the server) blank (just visual template) with
Thank you again. I think this is pretty simple and elegant solution. If you have any further suggestions, please post a comment or another answer.