the module in question can be found here http://pnencyclopedia.sourceforge.net/
and here is my question:
i thought i was pretty good at getting shorturls on my site, i even managed to get the pnphpbb shorturls but now i'm stuck. i created my htaccess for pnEncyclopedia as follows:
Code
# Rules for Encyclopedia
RewriteRule ^medTerms\.html$ /index.php?module=pnEncyclopedia [L,NC,NS]
RewriteRule ^medTerms-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=$1 [L,NC,NS]
RewriteRule ^medTerms-Vol-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=display_vol&vid=$1 [L,NC,NS]
RewriteRule ^medTerms-Letter-([^-]+)-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=search_letter&get_letter=$1&vid=$2 [L,NC,NS]
RewriteRule ^medTerms-([^-]+)-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=display_term&id=$1&vid=$2 [L,NC,NS]
RewriteRule ^medTerms\.html$ /index.php?module=pnEncyclopedia [L,NC,NS]
RewriteRule ^medTerms-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=$1 [L,NC,NS]
RewriteRule ^medTerms-Vol-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=display_vol&vid=$1 [L,NC,NS]
RewriteRule ^medTerms-Letter-([^-]+)-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=search_letter&get_letter=$1&vid=$2 [L,NC,NS]
RewriteRule ^medTerms-([^-]+)-([^-]+)\.html$ /index.php?module=pnEncyclopedia&func=display_term&id=$1&vid=$2 [L,NC,NS]
and my functions.php looks like this:
Code
$prefix . 'index.php\?module=pnEncyclopedia"|',
$prefix . 'index.php\?module=pnEncyclopedia&(?:amp;)?func=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnEncyclopedia&(?:amp;)?func=display_term&(?:amp;)?id=([\w\d\.\:\_\/]+)&(?:amp;)?vid=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnEncyclopedia&(?:amp;)?func=([\w\d\.\:\_\/]+)"|',
$prefix . 'index.php\?module=pnEncyclopedia&(?:amp;)?func=display_term&(?:amp;)?id=([\w\d\.\:\_\/]+)&(?:amp;)?vid=([\w\d\.\:\_\/]+)"|',
Code
'"medTerms.html"',
'"medTerms-.html"',
'"medTerms--.html"',
'"medTerms-.html"',
'"medTerms--.html"',
everything works, i've tested it by adding the direct link on my browser, and when i add the "index.php\?module=pnEncyclopedia" in my main menu block, the short urls work and it loads...however when i go to the encyclopedia itself, it doesnt' convert any of the links. i'm wondering if it has to do with a API compliant issue...
because all the links in the pnuser.php file are
Code
anyone know anything about this and i how i can implement short urls for the new pnEncyclopedia 0.2.0
