Forum Moderators: phranque

Message Too Old, No Replies

Using SSI to include query-stringed URL's

Works on some servers, not on others - any .htaccess tricks or something?

         

MatthewHSE

6:31 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



On one of my sites, I'm able to use SSI to include URL's that use query strings:

<!--#include virtual="/path/to/file.php?action=post&user-5" -->

On another of my sites, however (different server), the same procedure fails (although I can use non-query-stringed URL's in includes).

Is there anything in .htaccess or some other technique I can use to make this work on the second site?

Thanks,

Matthew

jdMorgan

7:42 pm on May 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It may be that the servers on which this fails have incorrectly-written RewriteRules on them.

Any rule which contains a "?" in the substitution URL will clear the query-string, unless the [QSA] flag is specified on that rule. You might want to check the rules for this problem.

Jim