E
E
Extezy2017-10-29 16:58:01
htaccess
Extezy, 2017-10-29 16:58:01

How to make subdomains a copy of the main Wordpress site?

Good afternoon! There is a list of subdomains that are created within the main domain and directed to the same directory with WP, they, in turn, should not redirect to the main domain, but should be given as a copy of the main domain.
Similarly, with internal pages, they completely duplicate the work of the main domain.
There is hosting on Timeweb for the task, the question is whether it can be implemented within the framework of hosting? if so, tell me how? if not, what is required to complete the task, maybe VPS or something else?
Do not offer a multisite, I already figured it out, set everything up, but it has flaws for my task.
I re-read everything related to this on the internet, I didn’t really find an answer, except for a similar solution on Modx
modx.im/blog/addons/2312.htmlbut I didn’t manage to turn it on WP.
Timeweb support says that this is possible within the framework of hosting, it is enough to send the created subdomains to the directory with WP, but as it turned out, this will work with other CMS, but not with WP because this is a feature of this CMS. Of course, their answer was a go-ahead and they have no desire to deal with my problems.
I ask for more detailed and detailed answers, since I am far from an expert in this field, I understand something, but superficially. Thanks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Igor Vorotnev, 2017-10-29
@Extezy0019

Try setting the domain dynamically:
https://codex.wordpress.org/Editing_wp-config.php#...
https://codex.wordpress.org/Editing_wp-config.php#...
Additionally, note the WP_CONTENT_URL constants, WP_PLUGIN_URL, COOKIE_DOMAIN and others containing URLs. You may have to hook into a few more filters (but I'm not sure - I need to test).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question