Report this

What is the reason for this report?

Removing /html/ directory from the end of my URL?

Posted on January 23, 2015

I installed Apache2 on Ubuntu and put everything in /var/www/html for my linked domain name. Is this where its supposed to be on Apache 2? Its the only place that its been working for me…

But how do I stop my domain (typing in domain.tld) from automatically going to domain.tld/html/? The website displays ok but can’t I just get it to show the contents of the html file (and their subdirectories) and show domain.tld?

I have tried some .htaccess fixes but to no avail. I also have some code in my .htaccess which redirects http:// to https:// and that is at least working now.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.