Answer the question
In order to leave comments, you need to log in
Get path in php without index.php?
I prescribe the meta in the pages that are generated in different folders (the names of the folders are also different and not known).
$url = ((!empty($_SERVER['HTTPS'])) ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question