How to force an HTML link to be absolute?

If you prefix the URL with // it will be treated as an absolute one. For example:

<a href="https://google.com">Google</a>.

Keep in mind this will use the same protocol the page is being served with (e.g. if your page’s URL is https://path/to/page the resulting URL will be https://google.com).

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)