Jump to content

PHP SEF URL


diasdaman

Recommended Posts

How do you access a page's URL in PHP after it has been re-written to be SEF?

 

Like, instead of http://www.example.com/index.php?page=news

I want a php variable that will return what the world sees (since I'm SEF'ing), which is http://www.example.com/news.

 

$_SERVER['REQUEST_URI'] does not work. It returns the "true" url (http://www.example.com/index.php?page=news).

 

Thanks!!!

Link to comment
https://forums.phpfreaks.com/topic/129284-php-sef-url/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.