• Resolved Ace

    (@h4hagency)


    The goal is to pass everything that is going to the main url except for pages made by wordpress (blog and subpages, about-us, built-for, etc + the homepage) to a subdomain.

    But it’s also very important to keep the parameters of the original traffic url, like so:

    if the original request was example.com/page?param1=value1&param2=value2, the redirect should forward these parameters to subdomain.example.com/page?param1=value1&param2=value2.

    And it just needs to be a wildcard for the parameters, because there are a lot. Just needs to pass the paramters – but the redirect rule needs to exclude wp-built pages.

    I’m currently using this regex rule:

    ^(?!\/($|blog($|\/)|built-for($|\/)|solutions($|\/)|our-clients($|\/)|about-us($|\/)|contact($|\/)|privacy($|\/)|wp-cron($|\/|.php\?doing_wp_cron=))).*

    But that doesn’t seem to pass the params. What would be the best way to achieve this with your plugin?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.