"([0-9]+)", "%section%" => "([0-9]+)", "%logout%" => "(yes)", "%sortby%" => "([0-9a-zA-Z]+)", "%orderby%" => "([a-zA-Z]+)", "%sort_order%" => "([a-zA-Z]+)", "%search_text%" => "([0-9a-zA-Z._]+)", "%search%" => "([a-zA-Z]+)", "%rowstart%" => "([0-9]+)" ]; $pattern = [ //"home" => "index.php", // Enable this if your main page is index.php "homepage" => "home.php", "login" => "login.php", "logout/%logout%" => "index.php?logout=%logout%", "maintenance" => "maintenance.php", "edit-profile/%section%" => "edit_profile.php?section=%section%", "edit-profile" => "edit_profile.php", "website-members/search-%search_text%-%search%/%orderby%/%sort_order%/" => "members.php?search_text=%search_text%&search=%search%&orderby=%orderby%&sort_order=%sort_order%", "website-members/search-%search_text%/%orderby%/%sort_order%/" => "members.php?search_text=%search_text%&orderby=%orderby%&sort_order=%sort_order%", "website-members/%sortby%-%rowstart%" => "members.php?sortby=%sortby%&rowstart=%rowstart%", "website-members/%sortby%" => "members.php?sortby=%sortby%", "website-members" => "members.php", "create/ref=%time%" => "register.php?ref=%time%", "contact" => "contact.php", "registration" => "register.php", "lost-password" => "lostpassword.php" ];