質問編集履歴
5
エラーログの内容が変わりました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -162,7 +162,7 @@
|
|
162
162
|
|
163
163
|
【エラーログの内容】
|
164
164
|
|
165
|
-
.htaccess:
|
165
|
+
.htaccess: Option FollowSymLinks not allowed here, referer: http://test.jp/cgi-bin/mt/mt.cgi?__mode=rebuild&blog_id=18&type=Monthly%2CIndividual%2CCategory%2CPage%2Cindex&next=4&offset=0&limit=&total=0&start_time=1467096821&entry_id=&is_new=&old_status=&old_categories=&old_previous=&old_next=
|
166
166
|
|
167
167
|
|
168
168
|
|
4
コードブロックで囲みました!
test
CHANGED
File without changes
|
test
CHANGED
@@ -56,7 +56,9 @@
|
|
56
56
|
|
57
57
|
【.htaccessの内容】
|
58
58
|
|
59
|
+
``````ここに言語を入力
|
60
|
+
|
59
|
-
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
61
|
+
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
60
62
|
|
61
63
|
# Disable fancy indexes, so .mtview.php gets a chance...
|
62
64
|
|
@@ -144,6 +146,18 @@
|
|
144
146
|
|
145
147
|
php_flag short_open_tag off
|
146
148
|
|
149
|
+
ここに言語を入力
|
150
|
+
|
151
|
+
```
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
|
147
161
|
|
148
162
|
|
149
163
|
【エラーログの内容】
|
3
詳細情報を追記しまいた。
test
CHANGED
File without changes
|
test
CHANGED
@@ -46,22 +46,114 @@
|
|
46
46
|
|
47
47
|
|
48
48
|
|
49
|
+
|
50
|
+
|
51
|
+
【使用CMS】
|
52
|
+
|
53
|
+
PowerCMSです。
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
【.htaccessの内容】
|
58
|
+
|
59
|
+
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
60
|
+
|
61
|
+
# Disable fancy indexes, so .mtview.php gets a chance...
|
62
|
+
|
63
|
+
Options -Indexes
|
64
|
+
|
65
|
+
<IfModule mod_rewrite.c>
|
66
|
+
|
67
|
+
Options +FollowSymLinks
|
68
|
+
|
69
|
+
# The mod_rewrite solution is the preferred way to invoke
|
70
|
+
|
71
|
+
# dynamic pages, because of its flexibility.
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
# Add .mtview.php to the list of DirectoryIndex options, listing it last,
|
76
|
+
|
77
|
+
# so it is invoked only if the common choices aren't present...
|
78
|
+
|
79
|
+
<IfModule mod_dir.c>
|
80
|
+
|
81
|
+
#DirectoryIndex index.php index.html index.htm default.asp default.aspx default.html default.htm /.mtview.php
|
82
|
+
|
83
|
+
DirectoryIndex index.html /.mtview.php
|
84
|
+
|
85
|
+
</IfModule>
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
RewriteEngine On
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
# don't serve .mtview.php if the request is for a real directory
|
94
|
+
|
95
|
+
# (allows the DirectoryIndex lookup to function)
|
96
|
+
|
97
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
# don't serve .mtview.php if the request is for a real file
|
102
|
+
|
103
|
+
# (allows the actual file to be served)
|
104
|
+
|
105
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
106
|
+
|
107
|
+
# anything else is handed to .mtview.php for resolution
|
108
|
+
|
109
|
+
RewriteRule ^ /.mtview.php [L]
|
110
|
+
|
111
|
+
</IfModule>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<IfModule !mod_rewrite.c>
|
116
|
+
|
117
|
+
# if mod_rewrite is unavailable, we forward any missing page
|
118
|
+
|
119
|
+
# or unresolved directory index requests to mtview
|
120
|
+
|
121
|
+
# if .mtview.php can resolve the request, it returns a 200
|
122
|
+
|
123
|
+
# result code which prevents any 4xx error code from going
|
124
|
+
|
125
|
+
# to the server's access logs. However, an error will be
|
126
|
+
|
127
|
+
# reported in the error log file. If this is your only choice,
|
128
|
+
|
129
|
+
# and you want to suppress these messages, adding a "LogLevel crit"
|
130
|
+
|
131
|
+
# directive within your VirtualHost or root configuration for
|
132
|
+
|
133
|
+
# Apache will turn them off.
|
134
|
+
|
135
|
+
ErrorDocument 403 /.mtview.php
|
136
|
+
|
137
|
+
ErrorDocument 404 /.mtview.php
|
138
|
+
|
139
|
+
</IfModule>
|
140
|
+
|
141
|
+
## ******* Movable Type generated this part; don't remove this line! *******
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
php_flag short_open_tag off
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
【エラーログの内容】
|
150
|
+
|
151
|
+
.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
49
157
|
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
50
158
|
|
51
159
|
以上、よろしくお願いいたします。
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
【追記】
|
56
|
-
|
57
|
-
とりあえず、.htaccessを正常に動作していた状態に戻してしまいました。
|
58
|
-
|
59
|
-
正直これをすると勉強にならないとは思ったのですが
|
60
|
-
|
61
|
-
いったんこれで対処しました。
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
ですが、なぜwebサイト作成すると.htaccessが問題を起こし500エラーになるのか
|
66
|
-
|
67
|
-
少し自分で調べてみようと思います。
|
2
\.htaccessの問題
test
CHANGED
File without changes
|
test
CHANGED
@@ -49,3 +49,19 @@
|
|
49
49
|
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
50
50
|
|
51
51
|
以上、よろしくお願いいたします。
|
52
|
+
|
53
|
+
|
54
|
+
|
55
|
+
【追記】
|
56
|
+
|
57
|
+
とりあえず、.htaccessを正常に動作していた状態に戻してしまいました。
|
58
|
+
|
59
|
+
正直これをすると勉強にならないとは思ったのですが
|
60
|
+
|
61
|
+
いったんこれで対処しました。
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
ですが、なぜwebサイト作成すると.htaccessが問題を起こし500エラーになるのか
|
66
|
+
|
67
|
+
少し自分で調べてみようと思います。
|
1
\.htaccessを正常に動作していた状態に戻しました。
test
CHANGED
File without changes
|
test
CHANGED
File without changes
|