Answer the question
In order to leave comments, you need to log in
Wordpress city selection followed by a redirect to a subfolder how to implement?
Comrades, save. vp beginner. How to implement a WordPress city selection followed by a redirect to a subfolder?
Answer the question
In order to leave comments, you need to log in
Use WordPress Multisite with the subfolder feature so you don't proliferate the core of WP.
It depends on your task: if each city is just a landing page, then it’s enough to make them as pages with templates and a regular select to select, and if these are full-fledged sites, then multisite is a good solution
. Just keep in mind that not all plugins support this and manage it software is a bit more complicated. Get a list of sites get_sites()
and collect select from it
Check out the WT Geotargeting plugin for CMS WordPress. With it, you can implement on the site the choice of the city and the change of phone , and any other information.
But with regional directories, everything is not so simple. The WT Geotargeting plugin does not fully support regional directories, for this reason you need to either create them manually (in the form of pages) or configure Url generation and parsing using WordPress tools: WP_Rewrite() core class and URL rewriting functions (NC) .
As an alternative, you can consider not regional directories, but subdomains . They are supported by the WT Geotargeting Pro plugin.- extended paid version.
How are subdomains different from directories?
Regional subdomains are suitable for promotion in Yandex, and directories are suitable for promotion in Google. Thus, you need to build on the target audience.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question