By RafaelPich
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.
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!
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
- RewriteEngine on
- RewriteRule ^(.*)$ http://www.newdomain.com/ [R=301,L]
where newdomain.com 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>
<html>
<head>
<meta http-equiv="refresh" content="7; url='https://www.digitalocean.com'" />
</head>
<body>
<p>Please follow <a href="https://www.digitalocean.com">this link</a>.</p>
</body>
</html>
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="https://yourwebsite.com>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.
Best,
Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.