Login to download the latest version of Mint and your favorite Pepper, purchase additional licenses, or post in the Forum. Don't have an account? Create one!

In Partnership with Media Temple

Mint Forum

Forcing visitors to the .com domain, ignoring .co.uk

I have a feeling this is probably more a question relating to htaccess than Mint, but I’m experienced in neither and would appreciate being pointed in the right direction.

Our homepage can be accessed via domain.com and domain.co.uk. I would like to ensure that all stats (and visitors) use the domain.com.

At the moment, some pages are showing up in the Most Popular Pages statistics twice due to the different domains, and I would like to prevent that.

J-P Teti
Third-Party Pepper Developer
Posted on Sep 07, '09 at 12:28 pm

This can vary a little bit depending on how your site is setup. Does your .co.uk redirect to the .com or just show up directly?

Shaun Inman
Mint/Pepper Developer
Posted on Sep 08, '09 at 11:55 am

Whatever you do don’t use a client-side redirect like the meta refresh tag or you’ll lose the referrer data from a request. You should look into mod_rewrite, there are plenty of tutorials in Google to get you started.

xemino
Minted
Posted on Sep 20, '09 at 05:09 pm

just use a simple permanent forward at your registrar.

You must be logged in to reply. Login above or create an account