I can't link to my Website via a HTML href.

I want to link to my website hosted on a droplet from another website. With the standard way of linking in HTML the connection gets declined by the server. Other links work fine, i.e. to linked in. Website is reachable and functioning as intended via a normal web Browser. Do I need to update some Setting with the Apache Server? Thanks in advance.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
September 3, 2022

Hi there,

In addition to what has been mentioned already, it sounds like that you might be linking your website via HTTPS, eg:

<a href=">Site</a>

However, if you don’t have an SSL certificate this will not work. What you could do is to install a free certificate using the steps here:

If this still does not work, feel free to share the HTML snippet in place that is not working and we could try to advise you further.



Site Moderator
Site Moderator badge
August 31, 2022

Hi @rafaelpich,

Can you be a little more specific, do you need to redirect your whole website to another or just create a A href link so that when it clicks it opens another website?

Let’s assume it’s the first, in your .htaccess file you can add the following for this to work

  1. RewriteEngine on
  2. RewriteRule ^(.*)$ [R=301,L]

where will be the domain you want to redirect yours to.

If you want to use HTML to redirect when a link is clicked use the following

<!DOCTYPE html>
    <meta http-equiv="refresh" content="7; url=''" />
    <p>Please follow <a href="">this link</a>.</p>

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up