You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jim Albert <ji...@netrition.com> on 2018/03/16 00:34:25 UTC

[users@httpd] Rewriting SSI URLs

Is anyone aware of a method of rewriting a URL within a Server Side 
Include (SSI)?

So for example,
<!--#include virtual="/abc/test.cgi"-->
I would like the web server to actually run the following
/abc/def/test.cgi

Changing <!--#include virtual="/abc/test.cgi"--> is not a reasonable 
solution for me.

I understand that with SSIs the requests are all pre-output to the 
client so the client does not make these requests, but I thought 
relevant mod_rewrite directives particularly within the httpd.conf file 
would be respected for an SSI but that does not seem to be the case. 
Googling for advice on this presents almost zero relevant results except 
one indicating that rewriting an SSI is not possible, so perhaps that is 
the definitive answer.

Thank you.
Jim Albert


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Re: Rewriting SSI URLs

Posted by "@lbutlr" <kr...@kreme.com>.
On 2018-03-15 (18:34 MDT), Jim Albert <ji...@netrition.com> wrote:
> 
> Googling for advice on this presents almost zero relevant results except one indicating that rewriting an SSI is not possible, so perhaps that is the definitive answer.

That was my belief, but it has been many many years since I used SSI.

-- 
'But look,' said Ponder, 'the graveyards are full of people who rushed
in bravely but unwisely.' 'Ook.' 'What did he say?' said the Bursar. 'I
think he said, "Sooner or later the graveyards are full of everybody".'


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org