So I have this website on a local machine. I also have a domain, let's call it mydomain.com. From mydomain.com there's a redirect setup to my local machine mydomain.com -> 192.168.0.1/mysite
But I want it to keep the domainname and hide my ip. mydomain.com -> mydomain.com/site
I'm running Apache 2.4.7 on Ubuntu 14.04 I thought about modrewrite but after reading the documentation and some trial and errors I really got nothing. Is modrewrite the way to go?
I've put the modrewrite-stuff inside the 000-default.conf file in the Directory-tag. So I'm not using the .htaccess file because I read somewhere that it is not neccessary and also not the recommended way...?