So simply do it - edit the Apache configuration and point DocumentRoot (thats a configuration option) to /code/www/public. Also adapt the "<Directory ...>" configuration to your needs (there is currently one for the htdocs folder).
You may also create a VirtualHost for nameofmywebsite.dev, if you need different behaviour for localhost and/or nameofmywebsite.dev
See
https://httpd.apache.org/docs/2.4/en/mo ... cumentrootand
https://httpd.apache.org/docs/2.4/en/mo ... irtualhostThere are also plenty of tutorials and videos in the internet about VirtualHosts etc. (simply Google for it).
Turtoise is unknown to me, i cannot say anything about it.
newdev wrote:I watched a lot of tutorials, which is saying to put the website in htdocs. Is that what I have to do even if i m using Tortoise?
No, htdocs is the "out of the box" DocumentRoot for the Xampp installation, but of course you may feel free to change that location and/or to create a new VirtualHost with its own DocumentRoot. A VirtualHost simply is another Domainname with its own DocumentRoot and Options for the same PC (or IP). With the help of VirtualHosts your are able to run different Domainnames like different Servers on one Apache installation (you dont need to multiply Apache and you dont need to run multiplce PCs).