Hi,
I have my personal site in a subfolder of my domain, e.g. https://example.com/site.
Going to example.com shows the default Cloudron LAMP page. I want to redirect visitors to the .com address to example.com/site
I have created an .htaccess
file in the root directory with the following code
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ /site/ [L]
</IfModule>
But this doesn't work; no redirection occurs.
I got this code from this Dreamhost article in the section:
"Automatically load a subdirectory"
https://help.dreamhost.com/hc/en-us/articles/215747748-How-can-I-redirect-and-rewrite-my-URLs-with-an-htaccess-file
I'd appreciate any help!
Thanks!