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.

To deal with situations where a Qwwwik website is moved from Apache to Windows and all your internal links do not have the .php file extension, enter 'YES' (in setup) for .php it and the CMS automatically adds it for you, so you don't need to edit them all.

This feature in Qwwwik applies only to internal links written 'relatively' without a full URL and linking to a page on the same website. It can be enabled or disabled in Admin / Setup / .php it 'YES/NO'.

(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.

From Qwwwik v1.4, setup gives an option to make internal links relative, not absolute. It may make the website a little bit faster (in theory). Opinions differ on which is best. Links in Qwwwik are absolute by default but if you want links to be relative, select 'REL' in the box then 'Submit setup'. You can always change back with 'ABS'.

The default example it set to relative »

(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: 18 May, 2024
Search | Legal | Qwwwik

Info