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.

How to get rid of the extra info that EE2 generates??

October 04, 2010 5:51pm

Subscribe [4]
  • #1 / Oct 04, 2010 5:51pm

    redgizmo

    14 posts

    Hi,

    I have a variable trying to load and for some reason EE2 is adding some extra code that does not let my flash application load.

    var flashvars = {};
            flashvars.xml = "{site_url}index.php/embeds/config.xml";

    and what is coming out is this:

    <a href="http://www.mysite.com/index.php/embeds/config.xml?t=1286224420728">http://www.mysite.com/index.php/embeds/config.xml?t=1286224420728</a>

    My question is, how do I get rid of the extra

    ?t=1286224420728

    that ee2 is genereting??? I already try adding this to the .htacces file:

    RewriteRule ^(.*)$ /index.php?/$1 [L]

    but I do not know how to remove the rest.

    Thank you

  • #2 / Oct 04, 2010 8:51pm

    codeM

    51 posts

    Hey redgizmo
    just tried the code you posted and I am not getting the ?t=1323321321 extra code

    [removed]
    var flashvars = {};
            flashvars.xml = "{site_url}index.php/embeds/config.xml";  
     [removed](flashvars.xml);       
    [removed]

    outputs : http://test.mysite.ca/index.php/embeds/config.xml

    are u using the code within a channel entry? if so check that channel’s preferences and see if turning off the Automatically turn URLs and email addresses into links? parameter to NO see if that helps

  • #3 / Oct 05, 2010 8:41am

    Sue Crocker

    26054 posts

    Thanks for the assist, codeM.

    redgizmo, does that help?

  • #4 / Oct 05, 2010 12:01pm

    redgizmo

    14 posts

    Actually, it’s technically not an EE issue. I found out that the Flash application we were passing the xml to was adding the code to the end of the url, probably to prevent caching, but I don’t have access to the source code of the application.

    By adding it, it confuses EE and it renders the default page instead of the xml. Is there a way to remove it with the htaccess or to get EE to ignore it?

  • #5 / Oct 05, 2010 5:56pm

    Ingmar

    29245 posts

    By adding it, it confuses EE and it renders the default page instead of the xml. Is there a way to remove it with the htaccess or to get EE to ignore it?

    Unfortunately I am not aware of an immediate solution here. Your best option would in fact be to change the app creating the XML. Let me move this to the CodeShare Corner for you for some additional community support.

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

ExpressionEngine News!

#eecms, #events, #releases