I
I
Ivan2021-02-17 20:56:33
WordPress
Ivan, 2021-02-17 20:56:33

How to make subdomains for WooCommerce cities?

I need to add subdomains like piter, moscow, etc. to a wordpress site.
Those. in the end it turns out:
piter.site.ru
moscow.site.ru

It's not difficult, even easy. But if you enable the WooCommerce plugin (and I need it), then that's it, the site with the subdomain refuses to open.
Help find the answer.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
Fenix957, 2021-02-18
@youmixx


Add the following define('WP_DEBUG', true); in wp-config.php at the root of your site .
define('WP_DEBUG_LOG', true);
define('WP_DEBUG_DISPLAY', true);
@ini_set('display_errors',1);
define('SCRIPT_DEBUG', true);
Thus, you will see what exactly is wrong
. Also, there will be a list of errors in the /wp-content/debug.log file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question