2006-06-10 (土)
■ header('Location: 〜') では絶対 URL を指定すること
RFC でそう定義されているらしい。知らなかった。 今まで平気で header('Location: index.php'); とか書いていたよ。 これは直さないとなぁ。
しかし、相対 URL から絶対 URL をどう作り出すかが非常に悩ましい。 HTTP_HOST と SERVER_NAME とどちらがいいのかとか、 https の場合どうするんだとか、 調べれば調べるほど分からなくなってきた。 うーん。
[コメントを書く]
本日のリンク元
- 96 http://blogger.blog360.jp/552429/14223489
- 14 google検索(php location)
- 13 google検索(php location)
- 8 http://www.google.co.jp/hws/search?hl=ja&q=php loc...
- 6 google検索(php header location)
- 6 google検索(php header location)
- 5 google検索(php location)
- 5 google検索(location php)
- 4 google検索(php location)
- 3 google検索(php header)
- 3 google検索(php location )
- 3 google検索(php header)
- 3 google検索(php location)
- 3 google検索(PHP location)
- 3 google検索(PHP location)
- 3 google検索(PHP Location)
- 3 http://www.google.co.jp/hws/search?client=dell-row...
- 2 google検索(PHP header Location)
- 2 google検索(Location php)
- 2 google検索(php location)
- 2 google検索(php header)
- 2 google検索(php location)
- 2 google検索(php header location)
- 2 google検索(header location linux)
- 2 google検索(php location)
- 2 google検索(php header location)
- 2 google検索(php header location)
- 2 google検索(php header location)
- 2 google検索(php header 使えない)
- 2 google検索(php header Location google)
- 2 google検索(jquery location)
- 2 google検索(javascript php header)
- 2 google検索(PHP location)
- 2 google検索(php Location)
- 2 google検索(PHP location)
- 2 google検索(php header location)
- 2 google検索(php location)
- 2 google検索(php location)
- 2 google検索(php header location)
- 2 google検索(php header location)
- 2 google検索(php Location)
- 2 google検索(php Location)
- 2 google検索(location php)
- 2 google検索(javascript header location)
- 2 google検索(Location php)
- 2 google検索(Location PHP)
- 2 google検索(php location)
- 2 google検索(php header location)
- 2 google検索(php location)
- 2 google検索(php header Location $)
- 2 google検索(header location php)
- 2 google検索(header("Location:)
- 2 google検索(php Location)
- 2 google検索(location php)
- 2 google検索(php location)
- 2 google検索(php Location)
- 2 http://www.google.co.jp/hws/search?q=PHP 絶対 URL&...
- 2 http://www.google.co.jp/hws/search?hl=ja&q=PHP Loc...
- 2 http://www.google.co.jp/hws/search?client=dell-row...
- 2 BIGLOBE検索(php header location)
- 2 http://209.85.175.104/search?q=cache:ubWAAQWystYJ:...
- 1 google検索(php header svg)
- 1 google検索(session Location PHP)
- 1 google検索(php location)
- 1 google検索(php header location 無効)
- 1 google検索(location 絶対)
- 1 google検索(header php location)
- 1 google検索(header("location: )
- 1 google検索(header("location: index.php");)
- 1 google検索(PHP header Location)
- 1 google検索(相対URL 絶対URL location)
- 1 google検索(location php)
- 1 google検索(PHP location )
- 1 google検索(php header location)
- 1 google検索(php header image)
- 1 google検索(php header Location 相対)
- 1 google検索(location php)
- 1 google検索(header location safari)
- 1 google検索(header Location https)
- 1 google検索(PHP header Location)
- 1 google検索(Location: php)
- 1 google検索(Location: php)
- 1 google検索(php header)
- 1 google検索(php location header)
- 1 google検索(php header location)
- 1 google検索(location php header url)
- 1 google検索(header Location)
- 1 google検索(php header("Location:)
- 1 google検索(php header location)
- 1 google検索(location php header)
- 1 google検索(PHP header() https)
- 1 google検索(php header url)
- 1 google検索(location php)
- 1 google検索(php header location)
- 1 google検索(php header )
- 1 google検索(php Location)
- 1 google検索(header('Location: ' . $url); )
- 1 google検索(header("location:)
- 1 google検索(PHP location)
- 1 google検索(PHP location)
