質問編集履歴
1
urlの表記修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,11 +4,11 @@
|
|
4
4
|
|
5
5
|
例えば現在のurlが、
|
6
6
|
|
7
|
-
http;//
|
7
|
+
http;//example.jp/dir1/dir2/index.php(最初の;は:として読み替えてください)
|
8
8
|
|
9
9
|
だとすると、
|
10
10
|
|
11
|
-
http;//
|
11
|
+
http;//example.jp/dir1/dir2/
|
12
12
|
|
13
13
|
というのを取得したいのですが、
|
14
14
|
|
@@ -48,7 +48,7 @@
|
|
48
48
|
|
49
49
|
```php
|
50
50
|
|
51
|
-
header( "Location: http://
|
51
|
+
header( "Location: http://example.jp/dir1/dir2/main.php");
|
52
52
|
|
53
53
|
exit();
|
54
54
|
|