On Feb 7, 2008 4:33 AM, Zbigniew Szalbot <zszalbot@xxxxxxxxx> wrote: > 2008/2/4, Nick Kew <nick@xxxxxxxxxxxx>: > > On Mon, 4 Feb 2008 18:23:35 +0100 > > "Zbigniew Szalbot" <zszalbot@xxxxxxxxx> wrote: > > > > > Only this? Or should the header contain this: > > > > > > Status: 301 Now where did I leave that URL > > > Location: http://xyz.abc.com/foo/bar.html > > > Content-type: text/html > > > > Yep. Get that up-and-running with mod_asis, then plug it in to > > what you've got. > > > > You can return an HTML stub (like Apache's default 301 ErrorDocument) > > just in case anyone ever looks at it. > > I did try to test it. So I have a test directory > /test/ with Multiviews on > > in which there are the following files: > index.html.var > index.html.po.iso8859-2 > > index.html.var has this: > URI: index.html.po.iso8859-2 > Content-language: pl > Content-type: text/html;charset=ISO-8859-2 > > and it opens index.html.po.iso8859-2 file correctly. So far, so good. > > Now I am putting in the index.html.po.iso8859-2 file the following code: > <META http-equiv="Content-Type" content="text/html; charset=iso-8859-2"> > <meta http-equiv="Location" content="http://domain.tld/test/pl/index.php"> > <meta http-equiv="Status" content="301 Now where did I leave that URL"> > > But this has no effect (i.e. no redirection). The browser still > displays http://domain.tld/test instead of http://domain.tld/test/pl/ > > $ cat /usr/local/etc/apache2/httpd.conf |grep "asis" > LoadModule asis_module libexec/apache2/mod_asis.so > AddHandler send-as-is asis > > Error log says nothing. Access log has this: > 192.168.16.1 - - [07/Feb/2008:10:31:54 +0100] "GET /test/ HTTP/1.1" 304 - > 192.168.16.1 - - [07/Feb/2008:10:31:54 +0100] "GET /test/ HTTP/1.1" 304 - > 192.168.16.1 - - [07/Feb/2008:10:32:02 +0100] "GET /test/ HTTP/1.1" 200 1535 > 192.168.16.1 - - [07/Feb/2008:10:32:16 +0100] "GET /test/ HTTP/1.1" 200 1535 > > Many thanks for pointers how to make it work! You are moving farther away from the solution rather than closer. Your main problem seems to be not reading the docs. The docs for mod_asis have a specific example of what should be in an .asis file to generate a redirect. Start from there. Then your second problem is that your files are not actually being processed by mod_asis, because they aren't using the asis extension. You'll want to name them something like index.asis.po.iso8859-2 (Also, if you go with mod_rewrite instead, using the RewriteLog to help you debug.) Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See <URL:http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx