XF 1.5 Help with routes rewriting

ungovernable

Active member
I created a route filter like this:
Code:
Find Route: pages/bands/
Replace With: bands/

It works perfectly and the page loads using an URL like https://www.example.com/bands/

But how can I rewrite an URL like this:
Code:
https://www.example.com/bands/metallica/
with this URL:
Code:
https://www.example.com/pages/bands/?band=metallica
"metallica" would be a wildcard

I tried using {name}, but the page doesn't load
1588401543270.png
 

ungovernable

Active member
Any answer? I can pay money for help. Just PM me your PayPal account.

All I need to know is how to create a custom URL for my PHP plugin.

singleBand.php
Code:
class ungovernable_page_ControllerPublic_singleBand
{
    public static function getSingleBand(XenForo_ControllerPublic_Abstract $controller, XenForo_ControllerResponse_Abstract &$response)
    {


        $html = " parameter is " . $_GET['band'];



        $response->params['html'] = $html;
        return $response;
  
    }
}

It's just a page node.

The URL for this page is currently:

Now I want to display this same page node with this URL instead:
 
Top