私のサーバー上のmp3ファイルでPHPのget_headers()を実行していて、wwwを使用していない場合はHTTP 404、wwwを使用している場合はHTTP 200を受け取ります。HTTPヘッダーはwww以外のURLで404を返しますか?
私はブラウザのいずれかのアドレスからファイルにアクセスできます。なぜ404?何とか.htaccessでこれを修正できますか?
1)ワードプレスのインストールファイルは、ワードプレスのWP-コンテンツ/アップロード領域にある非WWWアドレス(example.com)2)を使用するように構成され
3)WWW http://lhcsj.org/wp-content/uploads/2012/05/2012-5-6-sj.mp3
HTTP/1.1 404 Not Found
Date: Tue, 08 May 2012 21:11:43 GMT
Server: Apache/2.2.3 (CentOS)
Content-Length: 314
Connection: close
Content-Type: text/html; charset=iso-8859-1
: - (> example.com www.example.com)
ヘッダーのためのサブドメインは、DNS CNAMEが非WWWのドメインを指していますの
ヘッダについて:http://www.lhcsj.org/wp-content/uploads/2012/05/2012-5-6-sj.mp3
HTTP/1.1 200 OK
Date: Tue, 08 May 2012 21:08:05 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Mon, 07 May 2012 17:19:47 GMT
ETag: "9c52430-e3626f-7a1332c0"
Accept-Ranges: bytes
Content-Length: 14901871
Connection: close
Content-Type: audio/mpeg
mp3ファイルやページにアクセスしようとしているときにHTTP 404がありますか?正確なログは何ですか? –
OKファイルごとに返されたヘッダーを追加しましたURL –
「get_headers( 'http://lhcsj.org/wp-content/uploads/2012/05/2012-5- 6-sj.mp3 ') ' – anubhava