D
D
DarkUser13372020-07-29 17:49:42
PHP
DarkUser1337, 2020-07-29 17:49:42

How to connect a common engine in a subdomain?

Good evening!
In general, I have a domain example.com, where I have the entire engine. There is also a subdomain test.example.com
How can I connect the engine in a subdomain? Or generally accept all requests to the main domain?
There is a way , but I strongly believe that it can be done more correctly require '/var/www/example.com/index.php';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VisualIdeas, 2020-07-29
@DarkUser1337

The most logical option is if you have 1 engine and all requests from site.com and from *.site.com it accepts one and then it sorts out inside what domain called it and based on this it issues content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question