How to configure Symfony in Windows?

Asked

Viewed 84 times

1

I have an application written in Symfony 3 that I want to publish in a Ubdomain. The application is currently hosted in Ocaweb.

My main website is this: example.com

The goal is to create a specific domain for this application, so that it looks like: symfony.example with..

Through the hosting panel I can easily create subdominios, however they are mandatory inside the public_html folder. This way, even if I create a domain, the folder is still accessible through the main site.

For example:

The main site has the name example.com that points to the public_html folder/

The domain has the name synfony.example.with which it points to the public_html/other_project folder.

How can I ensure that even if you are in a subfolder, the content of the application is not accessible? I imagined creating some htaccess rule for this, but I’m not sure how to make it run on the main site and be ignored on Subsite.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.