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

Problem with links

Hi, I’m fairly new to Mint, I’ve only been using it for about a month.

I’ve always had a problem with the links in the interface. and can’t seem to chalk it up to anything obvious.

I just did the upgrade but still all my links display similar to: http%3A//blog.ninedays.org/tutorials/

And text often looks like: To Photography%20-%20Ninedays%20Blog%20-%20web%…

Like there’s some crazy encoding problem. The problem is happening in the following Pepper Panels:

  • Referrers
  • Pages
  • Trends Internal
  • Trends External

But not in

  • Search

I’ve changed nothing in any of the files besides the database connection information and a search through the forums yielded no result. Any suggestions?

Thanks

-Terri

Shaun Inman
Mint/Pepper Developer
Posted on Nov 19, '07 at 09:48 am

This is usually the result of a hinky mod_rewrite rule. Do you redirect links from yourdomain.com to www.yourdomain.com (or vice-versa)? If so, simply disable mod_rewrite with an .htaccess file in your /mint/ directory containing the following:

RewriteEngine off

That doesn’t appear to solve the problem, well that or I am trying to solve it incorrectly.

The root .htaccess looks like this:

RewriteEngine on
Options +FollowSymLinks

RewriteCond %{HTTP_HOST} ^www.ninedays.org$ [NC]
RewriteRule ^(.*)$ http://ninedays.org/$1 [R=301,L]
AddHandler php4-script .php

I even threw this condition in there too for kicks to no avail.

RewriteCond $1 !^(mint)

And turned RewriteEngine off in the mint .htaccess file.

Am I making the right moves to disable mod_rewrite? Or is this something that won’t have an immediate effect on Mint?

  • Terri
Shaun Inman
Mint/Pepper Developer
Posted on Nov 19, '07 at 12:22 pm

This will not affect previously recorded page views but local links in the Recent Pages tab should be correct. (The “corrupted” urls will make their way out of the system eventually.)

Fantastic, I just checked again and the bad links are filtering out, slowly but surely.

Wish I had actually looked into it before this past weekend’s sudden surge of traffic but that’s why hindsight is 20/20!

Mint is beautiful BTW. I’m so happy I decided to start using it, it’s given me insight into my site that I never knew I wanted!

I’ll bump this thread, rather than starting my own. I’m having a similar problem with encoded URLs showing up all over the place. I added an .htaccess file to /mint/ with the following content:

RewriteEngine   off

I’m still seeing the problem, however. I admit to being a bit inexperienced with rewrites and redirects (I inherited the current setup). Can someone explain to me what part of the redirection/rewrite process is probably confusing Mint so I can do better troubleshooting?

Shaun Inman
Mint/Pepper Developer
Posted on Apr 11, '08 at 12:20 pm

Turning off mod_rewrite in your Mint directory should prevent future hits from being recorded with encoded urls. It will not affect previously recorded data though.

Are you still seeing the problem in your “Most Recent” tabs?

If not, it’s been fixed and the previously recorded data will expire in (the default) 5 weeks.

I’m still seeing them, even in my “Most Recent” tabs, which is why I’m wondering possible root causes so I can figure out what else to check. We have a set of non-trivial rewrite rules on the main site, and the actual PHP does its own share of redirects. Could that be causing the problem? How would I check?

Thanks.

Shaun Inman
Mint/Pepper Developer
Posted on Apr 14, '08 at 11:03 am

From what I can see using #Mint:Debug, there doesn’t appear to be an encoding issue during debug. Is there a specific page that you are observing this issue on?

Shaun,

If it’s alright with you, why don’t I take this to an offline support request. I can post the resolution back here for posterity.

Thom

Back from vacation, still hoping for any ideas on what’s going on.

Following up. Seems that I had a stray rewrite rule that was rewriting all https Mint requests into http requests. Not sure why this wasn’t affected by explicitly turning off rewrites for the Mint directory, but this seems to have fixed it.

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