Forum Moderators: phranque
Im using mod_rewrite for a guestbook,better known as googletap among cms users.
The code..
This part goes into the htaccess:
RewriteRule ^guestbook-admin-([a-zA-Z_]*)-ipban([a-zA-Z0-9]*)-confirm.html modules.php?name=MYBOOK&op=admin&action=$1&ipban=$2&confirm=ok
RewriteRule ^guestbook-admin-([a-zA-Z_]*)-id([a-zA-Z0-9]*)-confirm.html modules.php?name=MYBOOK&op=admin&action=$1&id=$2&confirm=ok
RewriteRule ^guestbook-admin-([a-zA-Z_]*)-([a-z]*)-([a-zA-Z0-9_]*).html modules.php?name=MYBOOK&op=admin&action=$1&$2=$3
RewriteRule ^guestbook-admin-([a-zA-Z_]*).html modules.php?name=MYBOOK&op=admin&action=$1
RewriteRule ^guestbook-admin.html modules.php?name=MYBOOK&op=admin
RewriteRule ^guestbook-sign.html modules.php?name=MYBOOK&op=Add_Sign
RewriteRule ^guestbook-([a-zA-Z]*).html modules.php?name=MYBOOK&idioma=$1
RewriteRule ^guestbook.html modules.php?name=MYBOOK
The part called by googletap itself is:
$urlin = array(
"'(?<!/)modules.php\?name=MYBOOK&op=admin&action=([a-zA-Z_]*)&ipban=([a-zA-Z0-9]*)&confirm=ok'",
"'(?<!/)modules.php\?name=MYBOOK&op=admin&action=([a-zA-Z_]*)&id=([a-zA-Z0-9]*)&confirm=ok'",
"'(?<!/)modules.php\?name=MYBOOK&op=admin&action=([a-zA-Z_]*)&([a-z]*)=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=MYBOOK&op=admin&action=([a-zA-Z_]*)'",
"'(?<!/)modules.php\?name=MYBOOK&op=admin'",
"'(?<!/)modules.php\?name=MYBOOK&op=Add_Sign'",
"'(?<!/)modules.php\?name=MYBOOK&idioma=([a-zA-Z]*)'",
"'(?<!/)modules.php\?name=MYBOOK'"
);
$urlout = array(
"guestbook-admin-\\1-ipban\\2-confirm.html",
"guestbook-admin-\\1-id\\2-confirm.html",
"guestbook-admin-\\1-\\2-\\3.html",
"guestbook-admin-\\1.html",
"guestbook-admin.html",
"guestbook-sign.html",
"guestbook-\\1.html",
"guestbook.html"
);
However ,there's one part not covered in here and that viewing next page.
The url for that is :modules.php?name=MYBOOK&page=2
etc...page=3 or whatever.
Can anyone help out here what i need to add to the file and htaccess?