2

I made a few months ago a symfony website for a client.

Today he asks me to add a simple static html file to the root of the website, that contains nothing but a hash. (This file will be used by a community manager to register the website somewhere).

Then I asked myself, what is the simplest way to tell Symfony to serve this static html file just as simple apache would do, by just placing it to the root folder ?

To be clear, this file must be accessed at the root level, just as an index file. What makes it not convenient is that its name is a hash itself.

1 Answer 1

2

If you are using apache and default .htaccess then if file exists in public / web directory then it will be served directly.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.