http://domain.com?keyword=value
...is easy to capture as its a simple GET request, however, I'd like to capture values that I pass directly after the /
like so:
http://domain.com/value
And I can fetch those values like so:
preg_match("/[^\/]+$/", "http://www.domain.com/value", $matches);
$last_word = $matches[0]; // value
... however, the URL results in a 404
because its looking for a directory named value
which is obviously non-existing.