Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

hassanshahzadaheer's avatar

$_SERVER['REQUEST_URI']

Hi! dear I re-write the code and experience on the

$_SERVER['REQUEST_URI'] 

that my pages do not change it is still on the root directory which is re-test let me show the image of my result page

this is about/culture page now I understand is that must be the re-test/about/culture but the request_uri not return the right path

https://prnt.sc/o0wv8f

can you please now figure out what is the problem

thank you so much

0 likes
1 reply
JohnBraun's avatar

So, you want to get the document root?

$_SERVER['DOCUMENT_ROOT']

Please or to participate in this conversation.