Links


(1) Internal links

An 'internal' link is a 'hyperlink' to a page on the same website. They can be absolute or relative. An absolute link contains the full web address of the page being linked to. A relative link doesn't and is only relative to where you are. With Qwwwik, relative to where you are is the same website, eg:

https://qwwwik.com/ and not

https://anotherwebsite.com/

... i.e. you are linking 'internally' from a page https://qwwwik.com/page to another page https://qwwwik.com/another-page, which means that links can be written as relative.

A relative link on Apache web server with mod_rewrite enabled:

<a href="./anotherpage">link text</a> or
<a href="anotherpage">link text</a>

A relative link on Microsoft-IIS (Windows) or NGINX or Apache without mod_rewrite enabled:

<a href="./anotherpage.php">link text</a> or
<a href="anotherpage.php">link text</a>

The only difference is the file extension .php on the end with a Windows or NGINX web server. Most likely your website will be on Apache Web Server, so the extension is probably not required. Make sure you know whether your website is on Apache or not and mod_rewrite is enabled or not, so internal links are written correctly.

Admin /setup has an option .php it (YES/NO). It is there because only Apache Web Server recognises mod_rewrite in the .htaccess file which allows URLs without the file suffix .php on the end. Other web servers require the suffix for all internal links.

If the website is not on Apache, Qwwwik adds the suffix automatically. But it may be on Apache without mod_rewrite enabled, in which case .php it (YES) adds them on. Select YES or NO as required.

(2) Relative vs absolute

Regarding absolute vs relative links, the CMS automatically converts relative links to absolute. Just about every internal link in Qwwwik is made absolute, including internal links to images, video and stylesheets.

(3) External links

An 'absolute' link to a page on another website has the full URL:

<a href="https://www.example.com/page">link text</a>
(4) Change the link colour

If you want to change the link colour, that's easy. The default link colour is the HTML HEX value #ff0099 but it can just as easily be #005eff or any other HTML HEX colour. To change the colour, go to 'admin/setup' and enter a new one. Only valid full HEX colours can be used (don't make it too light).

Information

Page last modified: 30 May, 2024
Search | Legal | Qwwwik

Info