[ List Earliest Comments Only For Pages | Games | Rated Pages | Rated Games | Subjects of Discussion ]
Check out Janggi (Korean Chess), our featured variant for December, 2024.
Check out Janggi (Korean Chess), our featured variant for December, 2024.
I'm working on a php version of control.html a couple of directories lower at /play/jocly/control.php. I added an extra parameter to the query string to tell which directory a game is in. The following URL works:
https://www.chessvariants.com/play/jocly/control.php?game=xiangqi&dir=chessbase
Curiously, though, when I reverse the order of the two parameters, it gives me Chess instead of Xiangqi:
https://www.chessvariants.com/play/jocly/control.php?dir=chessbase&game=xiangqi
Bearing this in mind, I created a rewrite rule in .htaccess that lets me use the dir value as a directory name before the game of the name. Given that the following URL show the description and rules for the correct game, I can tell that it is being rewritten correctly, but when I use it, Jocly does not work:
https://www.chessvariants.com/play/jocly/chessbase/xiangqi
I added some code to pass the PHP variable's value to a JavaScript variable called game, but it didn't help. I also tried GAME, but that didn't help either. Any ideas about what I can do?