I'm trying to get the following to work RewriteRule ^nd(.*) /index.php$1 [L] RewriteRule ^([a-zA-Z0-9---_]+/?[a-zA-Z0-9---_]+?)$ /index.php/file/go/$1 [L] Code (markup): all links beginning with http://mydomain.com/nd should follow the first rule and all other links should follow the second rule. This works as long as there are not dots in links using the second rule, so what I need to find out is how to be able to have links with dots in them... for example: http://mysite.com/adfdfs works http://mysite.com/adfdfs/dfdf works http://mysite.com/adfdfs/dfdf.add does not work but shoud work. thanks