Answer the question
In order to leave comments, you need to log in
How to load ajax pages using php routing?
Good afternoon. "Routing" is made on the site (Through the index.php file, if I'm not mistaken, it's called the controller).
So, in the .htaccess file
RewriteEngine on
RewriteBase /
Options All -Indexes
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^js/(.*)$ js/$1 [L]
RewriteRule ^img/(.*)$ img/$1 [L]
RewriteRule ^css/(.*)$ css/$1 [L]
RewriteRule ^photos/(.*)$ photos/$1 [L]
RewriteRule ^.*$ [NC,L]
RewriteRule ^.*$ index.php [NC,L]
AddDefaultCharset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml
Answer the question
In order to leave comments, you need to log in
Through the index.php file, if I'm not mistaken, the controller is called
index.php - get title plus content
index.php?get=file - get content only
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question