質問編集履歴
5
エラーログの内容が変わりました!
title
CHANGED
File without changes
|
body
CHANGED
@@ -80,7 +80,7 @@
|
|
80
80
|
|
81
81
|
|
82
82
|
【エラーログの内容】
|
83
|
-
.htaccess:
|
83
|
+
.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=
|
84
84
|
|
85
85
|
|
86
86
|
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
4
コードブロックで囲みました!
title
CHANGED
File without changes
|
body
CHANGED
@@ -27,7 +27,8 @@
|
|
27
27
|
PowerCMSです。
|
28
28
|
|
29
29
|
【.htaccessの内容】
|
30
|
+
``````ここに言語を入力
|
30
|
-
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
31
|
+
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
31
32
|
# Disable fancy indexes, so .mtview.php gets a chance...
|
32
33
|
Options -Indexes
|
33
34
|
<IfModule mod_rewrite.c>
|
@@ -71,7 +72,13 @@
|
|
71
72
|
## ******* Movable Type generated this part; don't remove this line! *******
|
72
73
|
|
73
74
|
php_flag short_open_tag off
|
75
|
+
ここに言語を入力
|
76
|
+
```
|
74
77
|
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
|
75
82
|
【エラーログの内容】
|
76
83
|
.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
|
77
84
|
|
3
詳細情報を追記しまいた。
title
CHANGED
File without changes
|
body
CHANGED
@@ -22,13 +22,59 @@
|
|
22
22
|
|
23
23
|
500エラーはサーバ側の設定によるエラーというのはわかったのですが、だとするとどう対処するのが正解なのかまでは導き出せませんでした・・・
|
24
24
|
|
25
|
-
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
26
|
-
以上、よろしくお願いいたします。
|
27
25
|
|
28
|
-
【
|
26
|
+
【使用CMS】
|
29
|
-
とりあえず、.htaccessを正常に動作していた状態に戻してしまいました。
|
30
|
-
正直これをすると勉強にならないとは思ったのですが
|
31
|
-
|
27
|
+
PowerCMSです。
|
32
28
|
|
29
|
+
【.htaccessの内容】
|
30
|
+
## %%%%%%% Movable Type generated this part; don't remove this line! %%%%%%%
|
31
|
+
# Disable fancy indexes, so .mtview.php gets a chance...
|
32
|
+
Options -Indexes
|
33
|
+
<IfModule mod_rewrite.c>
|
34
|
+
Options +FollowSymLinks
|
35
|
+
# The mod_rewrite solution is the preferred way to invoke
|
33
|
-
|
36
|
+
# dynamic pages, because of its flexibility.
|
37
|
+
|
38
|
+
# Add .mtview.php to the list of DirectoryIndex options, listing it last,
|
39
|
+
# so it is invoked only if the common choices aren't present...
|
40
|
+
<IfModule mod_dir.c>
|
41
|
+
#DirectoryIndex index.php index.html index.htm default.asp default.aspx default.html default.htm /.mtview.php
|
42
|
+
DirectoryIndex index.html /.mtview.php
|
43
|
+
</IfModule>
|
44
|
+
|
45
|
+
RewriteEngine On
|
46
|
+
|
47
|
+
# don't serve .mtview.php if the request is for a real directory
|
48
|
+
# (allows the DirectoryIndex lookup to function)
|
49
|
+
RewriteCond %{REQUEST_FILENAME} !-d
|
50
|
+
|
51
|
+
# don't serve .mtview.php if the request is for a real file
|
52
|
+
# (allows the actual file to be served)
|
53
|
+
RewriteCond %{REQUEST_FILENAME} !-f
|
54
|
+
# anything else is handed to .mtview.php for resolution
|
55
|
+
RewriteRule ^ /.mtview.php [L]
|
56
|
+
</IfModule>
|
57
|
+
|
58
|
+
<IfModule !mod_rewrite.c>
|
59
|
+
# if mod_rewrite is unavailable, we forward any missing page
|
60
|
+
# or unresolved directory index requests to mtview
|
61
|
+
# if .mtview.php can resolve the request, it returns a 200
|
62
|
+
# result code which prevents any 4xx error code from going
|
63
|
+
# to the server's access logs. However, an error will be
|
64
|
+
# reported in the error log file. If this is your only choice,
|
65
|
+
# and you want to suppress these messages, adding a "LogLevel crit"
|
66
|
+
# directive within your VirtualHost or root configuration for
|
67
|
+
# Apache will turn them off.
|
68
|
+
ErrorDocument 403 /.mtview.php
|
69
|
+
ErrorDocument 404 /.mtview.php
|
70
|
+
</IfModule>
|
71
|
+
## ******* Movable Type generated this part; don't remove this line! *******
|
72
|
+
|
73
|
+
php_flag short_open_tag off
|
74
|
+
|
75
|
+
【エラーログの内容】
|
76
|
+
.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
|
77
|
+
|
78
|
+
|
79
|
+
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
34
|
-
|
80
|
+
以上、よろしくお願いいたします。
|
2
\.htaccessの問題
title
CHANGED
File without changes
|
body
CHANGED
@@ -23,4 +23,12 @@
|
|
23
23
|
500エラーはサーバ側の設定によるエラーというのはわかったのですが、だとするとどう対処するのが正解なのかまでは導き出せませんでした・・・
|
24
24
|
|
25
25
|
申し訳ありませんが、お力をお借りしたくteratailに投稿させていただきました。
|
26
|
-
以上、よろしくお願いいたします。
|
26
|
+
以上、よろしくお願いいたします。
|
27
|
+
|
28
|
+
【追記】
|
29
|
+
とりあえず、.htaccessを正常に動作していた状態に戻してしまいました。
|
30
|
+
正直これをすると勉強にならないとは思ったのですが
|
31
|
+
いったんこれで対処しました。
|
32
|
+
|
33
|
+
ですが、なぜwebサイト作成すると.htaccessが問題を起こし500エラーになるのか
|
34
|
+
少し自分で調べてみようと思います。
|
1
\.htaccessを正常に動作していた状態に戻しました。
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|