Answer the question
In order to leave comments, you need to log in
How to dynamically create a page in PHP depending on the url?
Hello everybody!
How to make it so that when requesting different urls, php gives a page made through one php file, something like this.
<?php
include 'header.php';
include 'sitebar.php';
include 'page_content'.url.'.php';
include 'footer.php';
?>
Answer the question
In order to leave comments, you need to log in
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question