I’m working on an application locally. In this application, the links are all like so: <a href=“/contact”>Contact</a>. As you can see they don’t include a full path so what happens is when someone clicks on the link it takes you back to the Document_Root of the web server.
Is there a way for me to set the Document_Root using .htaccess?
The setup is like so:
My files are all in the “http://localhost:8888/domain.com/saas/public_html_dev/” directory.
Just as an example, my index file will load up a link for example <a href=“/contact”>Contact</a> and when clicked it takes the person to the following link: http://localhost:8888/contact
What I want to happen is redirect the link to: http://localhost:8888/domain.com/saas/public_html_dev/contact
I hope this makes sense.