Good night!) Don't even know how to describe the problem, which he himself invented)))
In a nutshell, I wanted a website with dynamic content loading via ajax, in this case I wanted to hide the real url you send the request.
In the js function send all requests to one Php file, the query is passed the variable name, depending on which value contains this variable, formed the address of a handler and pulls it through an include to handle the request.
Links have the form
while the real address
Using jquery.history trying this mess to manage. Everything works there-here goes, all is well, until you do refresh the page. Naturally, the 404 error... Any settings htaccess I did, for I do not know )))
Actually a question: how to solve the problem? I can think of is only one option which I with their knowledge can implement. To make the parsing a url using php and then on the old scheme. But it seems to me that there is another way, perhaps just using htaccess?
some more letters
ps: it is planned that the links will have only one level, i.e.
site.ru/page1/cat will NOT, but the links can drag along with 2-3 variables. Up to this point has not yet reached, so I cannot say what they will be or rather what kind of separator is used after the main url, I think the type of
site.ru/page1?dt_begin=.......&dt_end=....... or instead of
? there will be something else!? for example
:?! But this is another question...
don't ask me why, just wondering...