質問編集履歴

3

ドメイン修正

2018/07/12 00:35

投稿

rmrmnrm
rmrmnrm

スコア139

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  RewriteCond %{REMOTE_ADDR} !=222.222.222.222
18
18
 
19
- RewriteRule ^.*$ https://another-example.jp [R=301,L]
19
+ RewriteRule ^.*$ https://example.co.jp [R=301,L]
20
20
 
21
21
  </IfModule>
22
22
 
@@ -48,7 +48,7 @@
48
48
 
49
49
  RewriteCond %{REQUEST_URI} !(^/a/b/c/*)
50
50
 
51
- RewriteRule ^.*$ https://another-example.jp [R=301,L]
51
+ RewriteRule ^.*$ https://example.co.jp [R=301,L]
52
52
 
53
53
  </IfModule>
54
54
 
@@ -84,7 +84,7 @@
84
84
 
85
85
  RewriteCond %{REMOTE_ADDR} !=222.222.222.222
86
86
 
87
- RewriteRule ^.*$ https://another-example.jp [R=301,L]
87
+ RewriteRule ^.*$ https://example.co.jp [R=301,L]
88
88
 
89
89
  </IfModule>
90
90
 

2

追記1加筆

2018/07/12 00:35

投稿

rmrmnrm
rmrmnrm

スコア139

test CHANGED
File without changes
test CHANGED
@@ -61,3 +61,35 @@
61
61
  どのように修正したらよいか、教えてください。
62
62
 
63
63
  よろしくお願いします。
64
+
65
+
66
+
67
+ 【追記1】
68
+
69
+ 以下のURLを参考に修正しました。
70
+
71
+ http://www.techscore.com/blog/2014/12/16/%E5%85%A8%E3%81%A6%E3%81%AEweb%E6%8B%85%E3%81%AB%E6%8D%A7%E3%81%92%E3%82%8Bwrite%E8%A8%AD%E5%AE%9A%E9%9B%86/
72
+
73
+ ```htaccess
74
+
75
+ <IfModule mod_rewrite.c>
76
+
77
+ RewriteEngine On
78
+
79
+ RewriteBase /
80
+
81
+ RewriteRule ^/a/b/c/ - [L]
82
+
83
+ RewriteCond %{REMOTE_ADDR} !=111.111.111.111
84
+
85
+ RewriteCond %{REMOTE_ADDR} !=222.222.222.222
86
+
87
+ RewriteRule ^.*$ https://another-example.jp [R=301,L]
88
+
89
+ </IfModule>
90
+
91
+
92
+
93
+ ```
94
+
95
+ ですが状況は変わりませんでした。

1

IPを複数に修正

2018/07/11 07:48

投稿

rmrmnrm
rmrmnrm

スコア139

test CHANGED
File without changes
test CHANGED
@@ -13,6 +13,8 @@
13
13
  RewriteEngine On
14
14
 
15
15
  RewriteCond %{REMOTE_ADDR} !=111.111.111.111
16
+
17
+ RewriteCond %{REMOTE_ADDR} !=222.222.222.222
16
18
 
17
19
  RewriteRule ^.*$ https://another-example.jp [R=301,L]
18
20
 
@@ -42,6 +44,8 @@
42
44
 
43
45
  RewriteCond %{REMOTE_ADDR} !=111.111.111.111
44
46
 
47
+ RewriteCond %{REMOTE_ADDR} !=222.222.222.222
48
+
45
49
  RewriteCond %{REQUEST_URI} !(^/a/b/c/*)
46
50
 
47
51
  RewriteRule ^.*$ https://another-example.jp [R=301,L]