By gncanhoto
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: example.com/ should show example.com/mysite/
can any one help me please. Thanks in advance
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!
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 example.com/mysite/ in the first time. can any one help how to only write example.com/ and show example.com/mysite/ in the fist time? Can anyone help me how to only write the domain
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.