XF 1.5 Rewrite URL example.com/pages/somepage/?param=hello TO /somepage/hello/

ungovernable

Active member
I created a PHP page that displays some info with this URL:
The page node is set to use a PHP Callback with my class

But now I want to change the URL to something like this:

I wasn't able to do this using the Route Filters.
Usually, I could do this with 1 line of code in a .htaccess file, but I can't use htaccess to rewrite because /pages/somepage/ isn't a static file.

So how can I do this with PHP?

I would really appreciate some help! Thanks
 
Back
Top Bottom