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

stat links listed as mysite.com instead of www.mysite.com

R Mitchell
Third-Party Pepper Developer
Posted on Jan 31, '07 at 01:16 pm

All of my stats in Mint appear as mysite.com instead of mysite.com. I would prefer they be recorded as mysite.com. Is Mint doing something to strip the www out or is this occurring at a higher level?

shokk
Third-Party Pepper Developer
Posted on Jan 31, '07 at 01:20 pm

This is a known SEO issue. You want to add the following to your site’s root .htaccess:

RewriteCond %{HTTP_HOST} !^www..* [NC]

RewriteRule ^(.*) http://www.%{HTTP_HOST}/$1 [R=301,NC]

or

RewriteCond %{HTTP_HOST} ^yourdomainname.com

RewriteRule ^(.*)$ yourdomainname/$1 [R=permanent,L]

R Mitchell
Third-Party Pepper Developer
Posted on Jan 31, '07 at 01:28 pm

This isn’t an issue of how the viewer is entering the site. If the viewer directly enters mysite.com with the www and .htaccess is set to prefer mysite.com with the www. Everything is still listed in mint as http://mysite.com/.

Am I misunderstanding what you are saying? Redirecting the viewer to the www address of the site isn’t the issue.

Sam Brown
Third-Party Pepper Developer
Posted on Jan 31, '07 at 01:46 pm

rmitchell, you can uncheck the Trim www and index.* from urls (This will logically collapse two different urls that point to the same file. May break some urls.) tickbox in the default Pepper.

R Mitchell
Third-Party Pepper Developer
Posted on Jan 31, '07 at 01:53 pm

well, there you go. under my nose the whole time. who knows, i must have clicked that setting a long time ago or something.

rmitchell, nah, it’s on by default in Mint 2, so you probably didn’t do anything besides upgrade ;)

Shaun Inman
Mint/Pepper Developer
Posted on Jan 31, '07 at 03:32 pm

It was on by default since the beginning, Mint 1.0.

Peconi
Minted
Posted on Feb 01, '07 at 12:48 am

A question about this. What is the better way? Should I have the trim checkbox checked or unchecked in the movable type.

Also, I am kind of new to the whole SEO thing, so if someone could shine some light on what is better - to have links with the www prefix or no?

Any other thoughts - greatly appreciated!

Sam Brown
Third-Party Pepper Developer
Posted on Feb 01, '07 at 04:33 am

It’s personal preference. The tickbox in Mint doesn’t make a hint of difference to your actual site.

R Mitchell
Third-Party Pepper Developer
Posted on Feb 01, '07 at 07:49 am

Although the tickbox in Mint doesn’t make a difference, it did result in no results displaying for me using the Prank pepper. I have Google setup to show my site with the www, but Mint strips the www out. Therefore, Prank is getting the page rank of my site without the www and there is sometimes a difference in page rank between the same page with www and without. In my case, the front of my site is listed as a zero without the www but is a shameful but still somewhat satisfying two with it.

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

Hey there, I have officially suspended sales and support of Mint. The Create Account, Add License, Transfer License, and Contact forms have been disabled. Existing customers may continue to login and download Mint.

More info Continue