Answer the question
In order to leave comments, you need to log in
Converting a static site to ajax?
I have a static site in PHP. Works through rewrite, i.e. when you click on the link: site.ru/about/ index.php is constantly called and displays the desired page, i.e. separate PHP file.
Here is .htaccess
AddDefaultCharset utf8
DirectoryIndex index.php
RewriteEngine On
RewriteBase /
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ /index.php [QSA,L]
Tell me how to implement the call pages via ajax, like this: "site.ru/!#about" without reloading. I am not strong in this, so I ask you for help.
Answer the question
In order to leave comments, you need to log in
and why do you need it? Just judging by your question, you are just starting to learn about php, web servers, and js.
Better a simple but working site than a buggy site with such a load.
Oh yeah, if you haven't changed your mind:
https://github.com/defunkt/jquery-pjax
You are right, I am new to this business, but the customer's decision is necessary!
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question