[ic] rewite rules killed images - and cookies

DB interchange-users@icdevgroup.org
Mon Sep 23 13:56:01 2002


>> > <VirtualHost 123.456.789.0>
>> >          ServerAdmin webmaster@somedomain.com
>> >          DocumentRoot /path/to/html/root
>> >          ServerName somedomain.com
>> >          ErrorLog logs/somedomain_error_log
>> >          CustomLog logs/somedomain_access_log common
>> >          CustomLog logs/somedomain_agent_log agent
>> >          CustomLog logs/somedomain_referer_log referer
>> >          ScriptAlias /cgi-bin/ "/path/to/cgi-bin/"
>> >          RewriteEngine On
>> >          RewriteRule ^$ /cgi-bin/vlink/index.html [PT,L]
>> >          RewriteRule ^/$ /cgi-bin/vlink/index.html [PT,L]
>> >          RewriteRule ^/index\.html$ /cgi-bin/vlink/index.html [PT,L]
>> >          RewriteRule ^/cgi-bin/vlink/.* - [PT,L]
>> >          RewriteRule ^/.*images/.* - [PT,L]
>> >          RewriteRule ^/(.*) /cgi-bin/vlink/$1 [PT,L]
>> > </VirtualHost>
>> > 
>> > Good luck!
>> 
>> Yes that works great... thanks!  But the side effect is that my admin 
>> gui breaks. Is there a workaround for that? I tried adding
>> 
>> RewriteRule ^/cgi-bin/vlink/admin.* - [PT,L]
>> 
>> but that seems not to help.
> 
> Did you add a rule for the /interrchange/ dir that contains the UI images?
> 
> Rene
> 

Yes adding the rule for the interchange directory did the trick.. 
thanks! Now it has been pointed out to me that these rules cause the 
cookies file to be invalid.... is this fixable??

Lynx tells me this when I visit my site using the rewrite 
(http://M-and-D.com)

 > Accept invalid cookie path=/cgi-bin/MDS as a prefix of '/'? (n)

DB