You can add a variable prefix to all the available variables below by adding the following to your config.php file:
$config['url_helper']['prefix'] = 'url:';
Check to see if the current page was requested via ajax.
Returns the very last segment in the URI, even if it's a pagination segment
Returns the very last segment in the URI, but 2nd to last if the last is a pagination segment
Returns the ID of the last segment, in the case of /seg1/seg2/seg3/ it will return "3"
Return the ID of the last segment, or 2nd to last if the last is a pagination segment. In the case of ### /seg1/seg2/seg3/P5 it will return "3"
Will return the 2nd to last segment in the URI. In the case of /seg1/seg2/seg3/, it will return "seg2"
Returns the ID of the 2nd to last segment, in the case of /seg1/seg2/seg3/ it will return "2"
Returns the 2nd to last segment in the URI, but 3rd to last if the last is a pagination segment
Return the ID of the 2nd to last segment, or 3rd to last if the last is a pagination segment. In the case of ### /seg1/seg2/seg3/P5 it will return "2"
seg1/seg2/seg3 - Will return seg1/seg2
seg1/seg2/seg3
seg1/seg2/seg3/P10 - Will return seg1/seg2/seg3
Get the integer value from the /Px segment. People refer to it as a page number, but its actually an offset value. Both variables contain the same value, just depends on which nomenclature you want to use.
http://www.mysite.com + segments + query string
http://www.mysite.com + segments
Same as {current_url} but lowercases it
Segments + query string
{current_url} base64encoded
{current_uri} base64encoded
Current query string including ?, returns blank if no query string exists
Exactly the same as {query_string}, but with a different name incase Mo' Variables overrides it.
Full referring/previous url visited
Fetch any segment from the referring url
Segments reversed
If using Publisher, this will provide the default language value
If using Publisher, this will provide the default language value
If using Publisher, this will provide the default language value
Will provide the url_title in snake case. Useful if you're using dashes to separate words in your url segments. Will turn this-word into this_word.
If using Publisher, this will provide the default language value
If using Publisher, this will provide the default language value
If using Publisher, this will provide the default language value
If using Publisher, this will provide the default language value
Will provide the url_title in snake case. Useful if you're using dashes to separate words in your url segments. Will turn this-word into this_word.
If using Publisher, this will provide the default language value
2&6&9 - useful for doing an all inclusive search of the segments
2|6|9 - useful for doing an "if any" search of the segments
Provide a total count of categories found in the URL
Current query string without ?
Grab the value of a $_GET parameter from the URL
http, https, ftp etc
Your domain name, e.g. localhost, site.com
Any port number present in the URL, e.g. :80 or :8888
Full folder/virtural folder path or all segments if your site is located at the root of the domain/vhost
Anything after # in the URI