mod_rewrite - simple rule
I'm newbie to using apache mod_rewrite. I've tried to create the rule that replace the domain only for URL that are longer than www.mydomain.com or not ending with .php. If that the case I would like to replace the domain. For instance:
1) http://www.mydomain1.com/Object/Subobject should be changed to
2) http://mydomain1/com/Objects also shlould be modified , into:
but urls like:
http://www.mydomain1.com , http://mydomain1.com/ , http://www.mydomain1.com/something.php, http://mydomain1.com/something.php
should stay with no change. What would be the entry to .htaccess for such rules ?