wigglesby Posted February 10, 2010 Share Posted February 10, 2010 Hi All I'd really like it so that If someone types www.mydomain.com then they are redirected to www.mydomain.co.uk Is this possible with a .htaccess file? Thanks Link to comment https://forums.phpfreaks.com/topic/191638-com-redirect-to-couk/ Share on other sites More sharing options...
RussellReal Posted February 11, 2010 Share Posted February 11, 2010 'course its possible.. if you own both domains.. RewriteCond %{HTTP_HOST} ([^\.]+)\.com$ RewriteRule ^(.*)$ http://%1.co.uk/$1 ^^ I think that will do what you need.. Link to comment https://forums.phpfreaks.com/topic/191638-com-redirect-to-couk/#findComment-1010525 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.