Jump to content

Rewrite .com to .com.au


Kerosene

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.