Afficher un message
Vieux 25/05/2006, 13h17   #10
Robert Ionescu
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Can I redirect SSI's in a manner similar to mod_rewrite?

blaq@blaqzone.com wrote:
> If these were files requested by users' browsers, I could use the
> Apache rewrite engine to point the requests to the right directory.
> However, because the problem lies with server-side includes, I can't do
> that, right? (If I can, then I screwed up because it didn't seem to
> work.)


Note that prior to apache 2.1 mod_rewrite used in per-dir context (i.e.
..htaccess files, <directory>-containers etc.) does not act in sub requests.

But a rule in per-server context (httpd.conf, if you're using virtual
hosts, inside of that <virtualhost...>-container would work. But you
must not use the NS-flag, of course.

So it should look like

RewriteEngine on
RewriteRule ^/includes/header\.html$ /Temp/site1/includes/header.html [L]


--
Robert
  Réponse avec citation
 
Page generated in 0,04588 seconds with 9 queries