...
The easiest way to build an URI to an arbitray arbitrary article is as follows:
Code Block | ||||
---|---|---|---|---|
| ||||
$param['idart'] = $idart; $param['lang'] = $lang; $url = cUri::getInstance()->build($param); |
...
All of them prefixed with protocol and client host (e. g. http://host/) will also be identified as a internal UrlURL.
Other UrlsURLs, even internal Urls internal URLs like /unknown/path/to/some/page.html will not be identified as internal url internal URL event if they are real working clean URLs.
...
Builder | URI example | |
---|---|---|
cUriBuilderFrontcontent | front_content.php?idart=$idart&lang=$lang | |
cUriBuilderCustom | index-a-1.html | |
cUriBuilderCustomPath | category-alias/index-a-1.html | |
cUriBuilderMR | category-alias/article-alias.html | requires AMR |
Note | ||
---|---|---|
| ||
Verify URI examples! |
HTTP base path
All builder classes hav a member to hold the URL that is used as base for an absolute path (see above), e.g. 'http://contenido.org/'. The abstract class cUriBuilder offers a getter and a setter for this member.
...