[thelist] SSI on NT, Printer-Friendly Pages

Pete Prodoehl pete.prodoehl at cygnusinteractive.com
Thu May 3 16:26:35 CDT 2001


Generally I've found Apache's SSI (and  XSSI) stuff to be much better than
what IIS has...

But with the right syntax it should work...


Pete

> ----------
> From: 	rudy
> Reply To: 	thelist at lists.evolt.org
> Sent: 	Thursday, May 03, 2001 4:19 PM
> To: 	thelist at lists.evolt.org
> Subject: 	Re: [thelist] SSI on NT, Printer-Friendly Pages
> 
> 
> ><!--#if expr="$QUERY_STRING = 'printable'" -->
> >html chunk
> ><!--#else -->
> >html chunk
> ><!--#endif -->
> ></code>
> >
> >Can it work on IIS or am I doing something wrong.
> 
> 
> hi amy
> 
> sorry, can't help you with the IIS syntax, but it should be possible
> 
> in apache, i've done it like this --
> 
>    <!--#if expr="(${QUERY_STRING} = /printversion/)" -->
>      print version code here
>    <!--#elif expr="(${QUERY_STRING} = /textversion/)" -->
>      text version code here
>    <!--#else -->
>      graphic version code here
>    <!--#endif -->
> 
> by no means am i skilled in unix regular expressions (i lifted that code
> from an SSI tutorial on the web), but my understanding is that /foobar/ is
> actually a search to find that string anywhere in the query string, and i
> believe query strings will include the question mark, so if
> 
>    <!--#if expr="$QUERY_STRING = 'printable'" -->
> 
> doesn't work, try
> 
>    <!--#if expr="$QUERY_STRING = '?printable'" -->
> 
> 
> rudy.ca
> 
> 
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt ! 
> 
> 
_____________________________________________________
For more information about Cygnus Business Media, please visit our 
Web site at www.cygnusb2b.com







More information about the thelist mailing list