|
mod_rewrite - simple rule
Hi guys,
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
www.mydomain2.com/Object/Subobject
2) http://mydomain1/com/Objects also shlould be modified , into:
http://mydomain2/com/Objects
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 ?
|