Context: How can I configure a NameCheap domain to point to an Apache subfolder?
Following Devin's answer here I've created a .htaccess
file in /var/www
and wrote in the following:
RewriteEngine On
RewriteCond !sergiotapia.me
RewriteRule (.*) sergiotapia.me/$1 [QSA]
My folder structure is such:
/var/www/
/var/www/sergiotapia.me
When visiting the URL sergiotapia.me
I see the contents of /var/www
when I would like to be directly redirected to /var/www/sergiotapia.me
Any ideas?