ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Query strings (from email campaign) causing 404

June 08, 2012 5:14pm

Subscribe [3]
  • #1 / Jun 08, 2012 5:14pm

    AllanW

    37 posts

    Got an issue I haven’t seen before. Links to an EE site from an email (Campaign Monitor) are causing pages to render a 404 instead.

    This works

    <a href="http://sacramentofestival.com/kids/for-grownups/">http://sacramentofestival.com/kids/for-grownups/</a>

    but this, coming from a Campaign Monitor email, does not (and shows the 404 template):

    <a href="http://sacramentofestival.com/kids/for-grownups/?utm_medium=email&utm_campaign=festival">http://sacramentofestival.com/kids/for-grownups/?utm_medium=email&utm_campaign=festival</a> [...]

    Any idea why? Is there a setting in EE for ignoring such params? I don’t need to capture the string for anything.

    One thought: here’s my .htaccess. These rules have been translated for an Ngnix server. I tried the above test on other URLs (not just /kids) and the same result.

    AcceptPathInfo On
    
    Options -Indexes
    <IfModule mod_rewrite.c>
    RewriteEngine On
    
    RewriteRule ^festival/kids(.*)$ /kids$1 [R=301,L]
    # ee stuff
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond $1 !^/index.php
    RewriteCond $1 !.(css|js|png|jpe?g|gif|ico)$ [NC]
    RewriteRule ^(.*)$ index.php/?$1 [L]
    </IfModule>

    Any suggestions on the EE side? Thanks!

  • #2 / Jun 08, 2012 5:19pm

    AllanW

    37 posts

    Ahh, I might be having this problem:

    “Using URL rewrites to make ExpressionEngine, Campaign Monitor & Google Analytics play nice”
    http://v1.newism.com.au/blog/post/56/expressionengine-campaign-monitor-google-analytics-and-url-rewrites/

  • #3 / Jun 09, 2012 3:00am

    Manoj Thomas

    185 posts

    That article saved my butt a few times!

  • #4 / Jun 11, 2012 11:19am

    Shane Eckert

    7174 posts

    Hey AllanW,

    Where are you now? Did that article help?

    Please let me know!

    Cheers,

  • #5 / Jun 11, 2012 2:42pm

    AllanW

    37 posts

    Hi Shane, thanks for checking. I still don’t know what’s causing the issue. I’ve disabled Google Analytics tracking in Campaign monitor for the time being (so it’s not appending query strings to the URLs), but that’s really a band-aid.

    I’m not seeing the issue on another site that’s in development; there’s a lot of variables so I’m going to come back to this issue in a week or so. I really do want to understand what’s going on though, because it’s clear I’m not the only one affected and I want to make sure EECMS sites integrate well with other services.

    So, I’ll be back in a week. Any insights appreciated!

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases