HTML CODE: RewriteEngine on RewriteRule ^([a-zA-Z])(.html)$ dictionary.php?action=search&by=$0 RewriteRule ^([a-zA-Z])\/$ /$1 [R] RewriteRule ^([A-Z]+)([a-z)]+)([0-9)]+)\.html$ dictionary.php?action=search&by=$1&nr_page=$3 RewriteRule ^([^/]+)(.html)$ dictionary.php?action=show&word=$1 PHP CODE: FUNCTION dictMenu( $TE ) { $menu = 'A|B|C|D|E|F|G|H|I|J|K|L|M|N|O|P|Q|R|S|T|U|V|W|X|Y|Z'; $menu = explode('|', $menu); FOREACH ($menu as $key => $val) { $LinkUrl = linkMode ( $val, '?action=search&by=' ); $TE->assign( 'DICT_LINK_' . $val, $LinkUrl); } } //--AND the following function for creating links FUNCTION linkMode ( $Value, $Uri = '' ) { $Value = str_replace(' ', '_', $Value ); IF ( DICT_MODE_REWRITE == TRUE ) { $Url = DIC_URL . $Value . '.html'; }ELSE{ $Url = DIC_URL . FILE_INDEX . $Uri . $Value ; } RETURN $Url; When I click on the ABC links the PHP Code: print_r($_GET) = Array ( [action] => search [by] => S [word] => ) when I click on one of the words generated by clicking on a letter S PHP Code: print_r($_GET) =Array ( [action] => show [word] => Swingdance [by] => ) }