Need help writing rewrite rule... any experts?

Discussion in 'Site & Server Administration' started by portwolf, Oct 14, 2010.

  1. #1
    As of this morning IE came out with an update that is blocking my css files that are being processed as php from working so I need to set up my server to load them normally by the default text handler

    http://www.advancedebaydesigns.com/clients/accessory_export/css.css?id=29

    Is one of the files in question... the variable (id=29) actually means nothing and comes from an old setup which is irrelevant at this point... but
    Because its processed as php the server understands that's a variable and loads it normally... as just css.css but when it's handled by the default processor I think I'm going to get a file not found error, correct? because it's going to be looking for the file name "css.css?id=29"

    Here's the problem. I do not have access to most of these sites to go back and remove the "?id=xx" from the linked stylesheet in the HTML....

    Is it possible to create a rewrite rule in .htaccess that basically says

    rewrite css.css(*) to css.css ?


    THANKS FOR YOUR HELP IN ADVANCE
     
    portwolf, Oct 14, 2010 IP