shtml include and mod_rewrite

CLOSED

shtml include and mod_rewrite

Postby sudobash » Wed Feb 03, 2010 2:44 pm

I have a rather interesting question. Is there a way we can have virtual includes embedded in an shtml page can be translated by mod_rewrite to proxy from a different site.

Example:

http://www.site.com/page.shtml

page.shtml comprises

<-- #include virtual="/cgi-bin/abc.cgi" -->

However I don't want to have the abc.cgi executed in the same webserver.

Hence I tried following rewrite

RewriteRule /cgi-bin/abc.cgi http://otherhost.com/cgi-bin/abc.cgi [L,P]

The above only works when the URI accessed directly but not from shtml page.

Any idea why sub requests within shtml page are not picked up by rewrite?

Thanks
sudobash
 
Posts: 3
Joined: Wed Nov 02, 2005 10:35 am

Return to New Threads/Problems

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron