0
I own the following código
to get pages in my contents with url
friendly:
<?php
$url = (isset($_GET['url'])) ? $_GET['url'] : 'home';
$url = array_filter(explode('/', $url));
$file = './pages/' . $url[0] . '.php';
if (is_file($file)) {
include_once $file;
} else {
include_once './pages/404.php';
}
?>
But then the question arose, "?" What better way to do this, with php
or ajax
? Which is safer, which interferes more in the SEO
website? Which is more agile?
What is the reason for the signage? My question is very clear, please leave a commenting
– user76271
The second closing vote is mine. To understand, what you presented is confusing, not clear enough and even if it was clear it seems to be too broad that it is the choice of the first one who voted. But I’ll give you a chance. Maybe by clarifying better what you want and what the purpose of this is. The confusion is in "ajax" because ajax seems to have no use there in what presented. Unless I explain the context and, as that is lacking, it is what motivated me to vote as not clear enough. Did you find the comment confusing? Imagine who you read what you posted.. rsr
– Daniel Omine
Truth is I don’t have the ajax code yet, but the bottom question is that it’s running... not the code presented to make it clear.
– user76271