Kerosene Posted March 31, 2007 Share Posted March 31, 2007 I'm trying to rewrite my .com domain to .com.au - but I just can't work it out. What's the rule I need to use to do this: domain.com www.domain.com domain.com.au all go to: www.domain.com.au --- Ah crap! Sorry I didn't put this in mod_rewrite forum. Link to comment https://forums.phpfreaks.com/topic/45024-rewrite-com-to-comau/ Share on other sites More sharing options...
Kerosene Posted April 1, 2007 Author Share Posted April 1, 2007 I've got it working - but I fluked it and need someone to make sure I'm not doing more harm than good: RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} www.domain.com$ [OR] RewriteCond %{HTTP_HOST} ^domain.com.au$ RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L] Link to comment https://forums.phpfreaks.com/topic/45024-rewrite-com-to-comau/#findComment-219137 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.