質問編集履歴

1

追記依頼もいただいて

2016/05/27 16:32

投稿

redsan
redsan

スコア12

test CHANGED
File without changes
test CHANGED
@@ -1,18 +1,14 @@
1
- /domain.com/test.*html
1
+ お世話になります。
2
2
 
3
- このように複数のファイルがあるのですが
3
+ 同じディレクトリある複数のhtmlファイル
4
4
 
5
- これを/domain.com/test.*phpにリダイレクトして
5
+ 単一のphpに表示たいのですがうまくいまず質問させいただきました。
6
-
7
- /domain.com/test.*html → /domain.com/test.*php
8
-
9
- と、このように
10
6
 
11
7
 
12
8
 
13
- /domain.com/test.*html → /domain.com/test.*php
9
+ /example.com/test.*html → /example.com/test.php リダイレクトして
14
10
 
15
- /domain.com/test.*php に /domain.com/test.*html を読み込ませて
11
+ /example.com/test.php に /example.com/test.*html を読み込ませて
16
12
 
17
13
  一部内容を置換処理してから出力したいと考えています。
18
14
 
@@ -22,17 +18,25 @@
22
18
 
23
19
 
24
20
 
25
- B→Cとリダイレクトし
21
+ /example.com/test.html /example.com/test.php
26
22
 
27
- AからBにurlを変えずにリダイレクトさせて
28
-
29
- Bで現在のurlのフルパスを取得しセッションに保存して
30
-
31
- Cに送り呼び出してアセスさせたのですが当然ループてしまいました。
23
+ → /example.com/test2.phpとリダイレ
32
24
 
33
25
 
34
26
 
27
+ /example.com/test.htmlから/example.com/test.phpに
28
+
29
+ urlを変えずにリダイレクトさせてから
30
+
31
+
32
+
33
+ /example.com/test.phpで現在のurlのフルパスを取得しセッションに保存して
34
+
35
+ /example.com/test2.phpに送り呼び出してアクセスさせたのですが当然ループしてしまいました。
36
+
37
+
38
+
35
- ほかになにかやり方がないかと苦戦しております。
39
+ なにかやり方がないかと苦戦しております。
36
40
 
37
41
  なにかアドバイスいただけたらうれしいです。
38
42