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?
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!
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?
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]
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.
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.
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 ;)
It was on by default since the beginning, Mint 1.0.
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!
It’s personal preference. The tickbox in Mint doesn’t make a hint of difference to your actual site.
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