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.

Tracking code query string causes 404 template to be served?

September 22, 2008 7:19pm

Subscribe [2]
  • #1 / Sep 22, 2008 7:19pm

    imagehat

    68 posts

    I’m having issues with a client site and I’d like clarification of what the default behavior _should_ be. The issue is tracking code appended at the root level for Yahoo pay-per-click urls, if I set a 404 error template in Template Prefs, then the url causes the 404 template to be served. If I turn off the 404 preference, well, then I’ll never get a 404 served for bad requests so I’d rather not.

    Example URL:

    <a href="http://www.website.com/?OVRAW=asdf&OVKEY=1234">http://www.website.com/?OVRAW=asdf&OVKEY=1234</a>

    I guess I’d just like clarification of _why_ EE thinks this is a bad request, as I thought it ignores query strings in all the segments, I’m a bit confused as why this messes things up at the root level?

    Thank you!

  • #2 / Sep 22, 2008 8:10pm

    Sue Crocker

    26054 posts

    It might be that EE is “seeing” what it thinks is a request for a template group that doesn’t exist.

    Which EE version and Build are you running? You can find that information at the bottom of any EE control panel page.

    Testing now on one of my localhost sites.

    Edited to add:

    If I add index.php to the string, EE doesn’t see it as a request for a template group, but without it, it does.

    Not sure if it is by design or not.

  • #3 / Sep 22, 2008 8:28pm

    imagehat

    68 posts

    Thanks Sue, I noticed that too about the index.php in the string… but then my client would have to go back change a million (ok, that’s an exaggeration) affiliate and tracking links since it was a static html site before.

    Running 1.6.4 build 20080808

    If it’s possible to get an official answer on if that’s the correct behavior that would be great - if not then I’d like to find a way to patch it. If so, I’ll have to get someone much better at htaccess rewrite rules than myself to try to adjust…

    (and note the site I’ve tested on is NOT using any rewrite rules currently to keep things simple while I figure this out, though EE seems to behave the exact same way whether I leave it vanilla or use either the “include” or “file and directory check” methods from the wiki from my tests.)

  • #4 / Sep 22, 2008 8:30pm

    Sue Crocker

    26054 posts

    I already escalated this, I’ll let you know.

    In my testing I’m very vanilla, no .htaccess at all. 😊

  • #5 / Sep 23, 2008 12:59pm

    Sue Crocker

    26054 posts

    imagehat, here is a similar thread, but I’m not sure if this applies to your situation.

    When I tested in my vanilla setup, I’m not invoking index.php at all, and you aren’t either.. Still digging, just wanted to update you.

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

ExpressionEngine News!

#eecms, #events, #releases