Forum Moderators: phranque
Please be a little more specific.
This is what the variables would look like.
/games.php?op=detail&name=widgets&console=widgetplayer
...what your new two-variable static URLs look like.before we can answer your question.
If /games/xbox_games/(.*)\.html is to be rewrriten to /games.php?op=detail&name=$1
then *what* is to be rewritten to /games.php?op=detail&name=$1&console=$2 ?
The static URL must contain all the information needed to construct the dynamic script call, and the RewriteRule must take the static URL's structure into account.
Jim
RewriteRule games/xbox_games/([^/]+)/console/([^.]+)\.html /games.php?op=detail&name=$1&console=$2 [L]
RewriteRule games/xbox_games/([^.]+)\.html$ /games.php?op=detail&name=$1 [L]
* Changed to a slightly more efficient forward-looking negative pattern.
** The order of the rules *will* matter if you use (.*), because both the URL patterns will match. Using a negative pattern rather than a catch all allows you to order the rules for efficiency. IOW You can put the more requested location first.
Justin