Changing the project root directory through the .htaccess file

0

I have a server with a presentation portfolio done in html, css and javascript. All files in this portfolio are in the public_html folder and can be accessed by the server address 'server.com/'. However I developed a system in PHP and put it in a subfolder called gdemandas and can be accessed through the address 'server.com/gdemandas/'.

The problem is that all routes that the system handles in this project, example '/ login' are leading to 'server.com/' and not to 'server.com/gdemandas/'. I was wondering if there is a way to make all the files inside 'server.com/gdemandas/' recognize as the project root directory the address' server.com/gdemandas/ 'and not' server.com/'

    
asked by anonymous 20.11.2018 / 02:59

0 answers