Pretty URLs have garbage

Permalink
I have several sites with C5, all with Pretty URLs enabled. I've noticed that all of them are now having garbage added to the URLs. Nothing in .htaccess changed, but this wasn't that way to start with, it seems weird, I agree, but it seems to have degenerated.

All of the sites have some sort of variant which looks like this:


http://www.halfmoonbayim.org/event/#.UAIIio4guw4...

Note, everything works just fine, either with or without this, but the URLs are junked up, and it looks confusing and I've actually had people forwarding URLs in emails etc. with that in it because of course they didn't know better.

The .htaccess file has only this in it:


<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ pretty_url.php/$1 [L]
</IfModule>


Any ideas?

 
jero replied on at Permalink Reply
jero
I'm curious as to why you're redirecting everything through "pretty_url.php" - whatever that is. Normal C5 practice is to use index.php. pretty_url.php must be something that you or someone else has coded, and as such it could be doing pretty (!) much anything.

Id suggest a return to standard configuration. The standard .htaccess file looks like this:

# -- concrete5 urls start --
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}/index.html !-f
RewriteCond %{REQUEST_FILENAME}/index.php !-f
RewriteRule . index.php [L]
</IfModule>
# -- concrete5 urls end --
hmbimadmin replied on at Permalink Reply
Well it's a DreamHost server, and there have been some real issues with Pretty URLs. This is just standard stuff, just by enabling it in the Dashboard.

*-----------------------------*
Eric Vaughan
weatherfeller replied on at Permalink Reply
I was experiencing the same problem and found the answer via another C5 post. The culprit is the AddThis button. As part of its functionality to track clickbacks, it appends that garbage to the URL. It's not just a Concrete5 issue. This discussion on the AddThis forum explains that you can either have the clickback functionality OR truly pretty URLs, not both.

http://www.addthis.com/forum/viewtopic.php?f=3&t=34119...

I chose to turn off the clickback functionality. In the HTML code that you're embedding for the AddThis button, change the entry under "data_track_addressbar" from true to false. The variable might be a slight variation on what I listed.

<script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
hmbimadmin replied on at Permalink Reply
Excellent, thank you very much.