By methy on
I'm trying to make it so that when the user points their browser to example.com/stall/* (* being a wildcard), it gets redirected to example.com/stall/?stall=*
I've looked in a lot of places, around the web, and I'm sure I must be missing something pretty basic, but I can't find a solution. Any ideas?
Comments
Anyone got any clues?
Anyone got any clues? Thanks.
Within hook_nodeapi, you
Within hook_nodeapi, you should be able to pull the current page info, and filter based on a specific node type and/or operation.
From there, can pull the wildcard as arg(2) and/or use regex to parse the URL for certain strings, then use drupal_goto() to redirect the user to a page of choice.
I'm sure there are a million ways to do it, but I did something similar this way.
geremy