is there any way to match several same string together? like i want to do some mode rewrite... and i want miaaau to be like miaauu or miaau/ so if somebody will access www.geoseo.com/miaaau to be like they go to www.geoseo.com/miaaau/ or www.geoseo.com/miaaau/index.php
Have a look at the following: http://sg.php.net/manual/en/function.soundex.php http://sg.php.net/manual/en/function.levenshtein.php http://sg.php.net/manual/en/function.metaphone.php http://sg.php.net/manual/en/function.similar-text.php Each of these uses a different algorithm to determine the similarity between two strings. Which one will work best in your case is probably a matter of trial-and-error.