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 Quote 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.. Quote Link to comment https://forums.phpfreaks.com/topic/191638-com-redirect-to-couk/#findComment-1010525 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.