D
D
denn2020-05-22 22:27:53
Apache HTTP Server
denn, 2020-05-22 22:27:53

How to redirect to a link from a subdomain wildcard?

There are 20 wildcard subdomains test1.domain.ru test2.domain.ru etc. and there are page addresses in the same number as domain.ru/cat/test1 domain.ru/cat/test2.
How to do rewrite with address autodetection? The client visits test1.domain.ru and the rewrite redirects the client to domain.ru/cat/test1, etc. Is it possible to implement this using regex expressions?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question