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. Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.