Domain1 uses root /
I am trying to have Domain2 use /domain2
When I visit domain2.com, I want it to appear as domain2.com and use the files from /domain2 instead of root /
The closest I got was:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain2\.com$ [NC]
RewriteRule ^/?$ /domain2/$1 [L]
But if I try to go to some page at domain2/page.html it doesn't work, even though that page.html exists in the domain2/ folder
Any help is greatly welcomed. Thank you