Report this

What is the reason for this report?

How do I set up .htaccess file with subdomain?

Posted on April 2, 2016

Access to our subdomain,url returns Error 403 - no permission. There is no .htaccess file in the root, and I’m not sure that is a problem. File permissions for the subdomain files are all w (open).



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!

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.

is your sub domain in the /var/www tree?

No. We decided not use .htaccess because of a security issue. The 403 error turned out to be a mis spelled SQL file name.
Thanks for responding, though.

The developer cloud

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

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.