Answer the question
In order to leave comments, you need to log in
How to set up routing on Apache server?
There are two URLs: https://www.site.com/project1 and https://www.site.com/project2, both should return the same index.html with a project response header, the value of which depends on the URL. Those. for https://www.site.com/project1 it will be equal to project1, and for https://www.site.com/project2 - project2
I do this in order to open the same site from different URLs , but with different content and styles, depending on the project field read by JS in the response header
The task is quite trivial, but since I mainly deal with the front, it becomes quite time consuming for me, help someone who is strong in such matters, please. .
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question