_r

Get the current routing path For example,

  • example.com/foo/bar would return foo/bar
  • example.com/en/foo/bar would also return foo/bar
  • example.com/1/this-is-slug (if accomplished by RewriteRule) would return the underlying physical path
Returns
string

The route path starting from the site root