rewrite urls of Server Side Includes?

Using mod_rewrite to handle various content issues

rewrite urls of Server Side Includes?

Postby Jo » Mon Nov 20, 2006 6:21 am

Hello,

I need to rewrite the urls accessed internally by Apache for server side includes (either with <!--exec cgi='' --> or with <!--include virtual='' --> ).

I can rewrite those accessed directly by the client (browser), but not those used for SSI. I am using Apache 1.3.
Is there a way to do that please?

Thanks.
Jo
 
Posts: 2
Joined: Mon Nov 20, 2006 6:16 am

Postby richardk » Mon Nov 20, 2006 11:34 am

Mod_rewrite can't rewrite physical server paths. You'd have to use http://... i think.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby Jo » Tue Nov 28, 2006 5:29 am

Finally, I used a trick in the destination cgi, calling a special function to execute the other cgi with execve...
Well, it's kinda hard to explain, but it worked.
Thanks for the help anyway. :)
Jo
 
Posts: 2
Joined: Mon Nov 20, 2006 6:16 am


Return to Content

Who is online

Users browsing this forum: No registered users and 19 guests

cron