Heya!
I want to use pretty URLs in my plugin (a marketplace) and can't seem to figure out how vBulletin does it
So I have something like this:
PHP Code:
/marketplace.php?do=article&id=9
and would like to be
PHP Code:
/marktplatz/9-da-vinci-code
so coming from standard PHP with URL parameters, I would like to have a german rewrite (seeing my forum is german), the article ID and the name of the article (in this case the name of the book)
So far the .htaccess is the "easy" way - if I add
PHP Code:
RewriteRule ^marktplatz/.* marketplace.php [QSA]
I do see the marketplace.php (but just this one, no parameters used), but now I am sort of stuck on how to tell my plugin to use and parse the new URL structure.
Looking in members.php or other standard vBulletin pages did not seem to help and now I am asking you for any help
One (imho ugly) way would be to access
$_SERVER['REQUEST_URI'] and parse everything to only give me the ID 9, but this seems a bit over the top.
I am sure there is another way, but I just don't know where to look
Thanks for any help!
Best
Malte