_rr

The more realistic function to get the current routing path on the address bar regardless of RewriteRule behind For example,

  • example.com/foo/bar would return foo/bar
  • example.com/en/foo/bar would also return foo/bar
  • example.com/foo/bar?id=1 would also return foo/bar
  • example.com/1/this-is-slug would return 1/this-is-slug
Returns
string

The route path starting from the site root