how to transform every request for to

i’m running a LAMP stack (php5.6 and Apache/2.4.18) on top of ubuntu 16.04.

I need that every time my domain is called it shows also the folder were the site is stored. Something like: should show

can any one help me please. Thanks in advance

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

This question was answered by @gncanhoto:

ok based on the gndo sugestion I tried again changing the Vhost poiting it the DocumentRoot to /var/www/html/myfolder . Then i made a .htaccess with

RewriteEngine On RewriteBase / RewriteRule ^mysite/.*$ - [PT]

and worked like a charm! the only thing left is that i have to write the full in the first time. can any one help how to only write and show in the fist time? Can anyone help me how to only write the domain

View the original comment