Answer the question
In order to leave comments, you need to log in
How to make wordpress work with mirrors (aliases)?
Hello!
There is a wordpress site hosted by reg ru. You need to make it work on several addresses (without redirect and rewrite the address bar).
As far as I understand, it is enough just to register aliases (they are also aliases) in the ISP panel, which was done. However, when going to the alias, a 301 redirect to the main domain occurs.
I read that WordPress is not very friendly with mirrors, I tried using the plugins Domain Mirror and Multiple Domains with Analytics , but they give a cyclic redirect like "Mirror -> Main -> Mirror -> Main -> .... * n".
Attention experts! Question:
How to make WP work at an additional address?
Maybe a conflict with some plugin?
Also, reg ru provides the functionality of auto-subdomains - maybe somehow you can use them by spawning the necessary folders and putting htaccess in them, directing requests to the main site without rewriting?
Answer the question
In order to leave comments, you need to log in
It is possible by writing the WP_SITEURL and WP_HOME
directives in the config with dynamic address substitution.
But there is no need to produce duplicates and arrange chaos in the database.
But what you need is to run away from the regru before it's too late.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question