Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] Apache question



Hi,

I would like to "redirect" on my server /diary (and /diary/) to
/diary/index.html. I mean I would really the client to receive a
"redirect" answer, so that he (the client) displays
"http://www.raoult.com/diary/index.html"; in the URL field instead of
"http://www.raoult.com/diary/";.

There is already a redirection (from "/diary" to "/diary/"), as shown in
telnet sessions below.

By the way, I tried the:
Redirect /diary/ http://www.raoult.com/diary/index.html
which results in a loop...

The current /diary -> /diary/ redirection ("HEAD /diary"):

HTTP/1.1 301 Moved Permanently
Date: Fri, 03 Jan 2003 09:19:42 GMT
Server: Apache/1.3.19 (Unix)  (SuSE/Linux) ApacheJServ/1.1.2
mod_ssl/2.8.1 OpenSSL/0.9.6a PHP/4.0.4pl1
Location: http://www.raoult.com/diary/
Connection: close
Content-Type: text/html; charset=iso-8859-1

The "HEAD /diary/" gets the correct index.html file with no redirect:

HTTP/1.1 200 OK
Date: Fri, 03 Jan 2003 09:19:57 GMT
Server: Apache/1.3.19 (Unix)  (SuSE/Linux) ApacheJServ/1.1.2
mod_ssl/2.8.1 OpenSSL/0.9.6a PHP/4.0.4pl1
Connection: close
Content-Type: text/html


Any clue? (I think I already had the problem a few years ago, but I have
no idea on what I did at that moment).

Regards.

br.


-- 
GPG Key: 653514E5 (http://www.raoult.com/gpg)
--
Avoid the Gates of Hell. Use Linux.

Attachment: signature.asc
Description: This is a digitally signed message part


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links