質問編集履歴

8

修正

2016/03/31 07:45

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -138,9 +138,9 @@
138
138
 
139
139
  RewriteEngine on
140
140
 
141
- RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
141
+ RewriteCond %{HTTP_HOST} ^(www\.test\.com)(:80)? [NC]
142
142
 
143
- RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
143
+ RewriteRule ^(.*) http://test.com/$1 [R=301,L]
144
144
 
145
145
  order deny,allow
146
146
 
@@ -162,9 +162,9 @@
162
162
 
163
163
  RewriteEngine on
164
164
 
165
- RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
165
+ RewriteCond %{HTTP_HOST} ^(www\.test\.com)(:80)? [NC]
166
166
 
167
- RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
167
+ RewriteRule ^(.*) http://test.com/$1 [R=301,L]
168
168
 
169
169
  order deny,allow
170
170
 

7

修正

2016/03/31 07:45

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- [リンク](解決したため、リンクを消しました。ありがとうございました)
11
+ [リンク]
12
12
 
13
13
 
14
14
 
@@ -48,24 +48,6 @@
48
48
 
49
49
 
50
50
 
51
- ```html
52
-
53
- 解決したため、削除します。
54
-
55
- ありがとうございました。
56
-
57
- ```
58
-
59
- 長いため上部のみ記載します。
60
-
61
- ```css
62
-
63
- 解決したため、削除します。
64
-
65
- ありがとうございました。
66
-
67
- ```
68
-
69
51
  cssには日本語込みです(コメント用)。
70
52
 
71
53
 
@@ -92,9 +74,107 @@
92
74
 
93
75
  ```.htaccess
94
76
 
95
- 解決したため、削除します。
77
+ AddDefaultCharset Shift-JIS
96
78
 
79
+ DefaultLanguage ja
80
+
81
+ SetEnv TZ JST-9
82
+
83
+
84
+
85
+ AddType "text/html; charset=Shift-JIS" .html .css .js
86
+
87
+ AddType text/css .css
88
+
89
+
90
+
91
+ DirectoryIndex index.html .ht
92
+
93
+
94
+
95
+ ExpiresActive On
96
+
97
+ ExpiresByType image/gif "access 7 days"
98
+
99
+ ExpiresByType image/png "access 7 days"
100
+
101
+ ExpiresByType image/jpg "access 7 days"
102
+
103
+ ExpiresByType image/jpeg "access 7 days"
104
+
105
+ ExpiresByType text/css "access 7 days"
106
+
107
+ ExpiresByType image/x-icon "access 1 month"
108
+
109
+ ExpiresByType text/x-javascript "access 1 month"
110
+
111
+ ExpiresDefault "access 1 days"
112
+
113
+
114
+
115
+ <FilesMatch "\.(css|js|jpeg|jpg|gif|png|ico)$">
116
+
117
+ Header set Cache-Control "private, must-revalidate"
118
+
119
+ </FilesMatch>
120
+
121
+ <FilesMatch "\.(gif|png|jpeg|jpg|css)$">
122
+
123
+ ExpiresDefault "access 7 days"
124
+
125
+ Header set Cache-Control "max-age=604800"
126
+
127
+ </FilesMatch>
128
+
129
+ <FilesMatch "\.(icon|js)$">
130
+
131
+ ExpiresDefault "access 1 month"
132
+
133
+ Header set Cache-Control "max-age=2592000"
134
+
135
+ </FilesMatch>
136
+
137
+
138
+
139
+ RewriteEngine on
140
+
141
+ RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
142
+
143
+ RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
144
+
145
+ order deny,allow
146
+
147
+
148
+
149
+ <FilesMatch "^(\.htaccess|\.txt|\.xml)$">
150
+
97
- ありがとうございました。
151
+ deny from all
152
+
153
+ </FilesMatch>
154
+
155
+
156
+
157
+ <Files ~ "^\.(htaccess|htpasswd)$">
158
+
159
+ deny from all
160
+
161
+ </Files>
162
+
163
+ RewriteEngine on
164
+
165
+ RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
166
+
167
+ RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
168
+
169
+ order deny,allow
170
+
171
+
172
+
173
+ AcceptPathInfo Default
174
+
175
+
176
+
177
+
98
178
 
99
179
  ```
100
180
 

6

修正

2016/03/09 23:58

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
 
10
10
 
11
- [リンク](http://test.tsumutama.com/)
11
+ [リンク](解決したため、リンクを消しました。ありがとうございました)
12
12
 
13
13
 
14
14
 
@@ -50,45 +50,9 @@
50
50
 
51
51
  ```html
52
52
 
53
- <!DOCTYPE html>
53
+ 解決したため、削除します。
54
54
 
55
- <html lang="ja">
56
-
57
- <head>
55
+ ありがとうございました。
58
-
59
- <meta charset="Shift_JIS">
60
-
61
- <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
62
-
63
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
64
-
65
- <meta name="format-detection" content="telephone=no"/>
66
-
67
- <title>fika-TOP</title>
68
-
69
- <meta name="description" content="アンティークの雑貨ショップ「fika」です&#x266a;"/>
70
-
71
- <meta name="keywords" content="fika,antique,雑貨,Miscellaneous goods,"/>
72
-
73
- <link rel="stylesheet" href="container_12Eb_2c_top.css"/>
74
-
75
- <!--[if lt IE 9]>
76
-
77
- <script src="html5.js"></script>
78
-
79
- <![endif]-->
80
-
81
- <link rel="icon" href="image/favicon.ico"/>
82
-
83
- <link rel="icon" type="vnd.microsoft.icon" href="image/favicon.ico"/>
84
-
85
- <link rel="apple-touch-icon" href="image/favicon.ico"/>
86
-
87
- <meta name="apple-mobile-web-app-title" content="fika-雑貨ショップ"/>
88
-
89
- <meta name="application-name" content="fika-雑貨ショップ"/>
90
-
91
- </head>
92
56
 
93
57
  ```
94
58
 
@@ -96,23 +60,9 @@
96
60
 
97
61
  ```css
98
62
 
99
- @charset "Shift_JIS";
63
+ 解決したため、削除します。
100
64
 
101
- *{}
102
-
103
- *, *:before, *:after {
65
+ ありがとうございました。
104
-
105
- -webkit-box-sizing: border-box;
106
-
107
- -moz-box-sizing: border-box;
108
-
109
- -o-box-sizing: border-box;
110
-
111
- -ms-box-sizing: border-box;
112
-
113
- box-sizing: border-box;
114
-
115
- }
116
66
 
117
67
  ```
118
68
 
@@ -142,99 +92,9 @@
142
92
 
143
93
  ```.htaccess
144
94
 
145
- AddDefaultCharset Shift-JIS
95
+ 解決したため、削除します。
146
96
 
147
- AddType "text/html; charset=Shift-JIS" .html .css .js
148
-
149
- AddType text/css .css
150
-
151
-
152
-
153
- DefaultLanguage ja
154
-
155
-
156
-
157
- ExpiresActive On
158
-
159
- ExpiresByType image/gif "access 7 days"
160
-
161
- ExpiresByType image/png "access 7 days"
162
-
163
- ExpiresByType image/jpg "access 7 days"
164
-
165
- ExpiresByType image/jpeg "access 7 days"
166
-
167
- ExpiresByType text/css "access 7 days"
168
-
169
- ExpiresByType image/x-icon "access 1 month"
170
-
171
- ExpiresByType text/x-javascript "access 1 month"
172
-
173
- ExpiresDefault "access 1 days"
174
-
175
-
176
-
177
- <FilesMatch "\.(css|js|jpeg|jpg|gif|png|ico)$">
178
-
179
- Header set Cache-Control "private, must-revalidate"
180
-
181
- </FilesMatch>
182
-
183
- <FilesMatch "\.(gif|png|jpeg|jpg|css)$">
184
-
185
- ExpiresDefault "access 7 days"
186
-
187
- Header set Cache-Control "max-age=604800"
188
-
189
- </FilesMatch>
190
-
191
- <FilesMatch "\.(icon|js)$">
192
-
193
- ExpiresDefault "access 1 month"
194
-
195
- Header set Cache-Control "max-age=2592000"
196
-
197
- </FilesMatch>
198
-
199
-
200
-
201
-
202
-
203
- SetEnv TZ JST-9
204
-
205
-
206
-
207
- RewriteEngine on
208
-
209
- RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
210
-
211
- RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
212
-
213
- order deny,allow
214
-
215
-
216
-
217
- <FilesMatch "^(\.htaccess|\.txt|\.xml)$">
218
-
219
- deny from all
97
+ ありがとうございました。
220
-
221
- </FilesMatch>
222
-
223
-
224
-
225
- <Files ~ "^\.(htaccess|htpasswd)$">
226
-
227
- deny from all
228
-
229
- </Files>
230
-
231
- RewriteEngine on
232
-
233
- RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
234
-
235
- RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
236
-
237
- order deny,allow
238
98
 
239
99
  ```
240
100
 

5

追記

2016/03/09 06:21

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -127,3 +127,115 @@
127
127
  ビルダーで作ったhtml/cssを書き変えてとの指示で、JavaScriptとかのサーバサイドまったくわかってないです。
128
128
 
129
129
  .htaccessも初めて触っています。
130
+
131
+
132
+
133
+
134
+
135
+ ---
136
+
137
+ 追記 03/07/08:31
138
+
139
+ 返信が遅くなりすみません。
140
+
141
+ .htaccessの全文です。
142
+
143
+ ```.htaccess
144
+
145
+ AddDefaultCharset Shift-JIS
146
+
147
+ AddType "text/html; charset=Shift-JIS" .html .css .js
148
+
149
+ AddType text/css .css
150
+
151
+
152
+
153
+ DefaultLanguage ja
154
+
155
+
156
+
157
+ ExpiresActive On
158
+
159
+ ExpiresByType image/gif "access 7 days"
160
+
161
+ ExpiresByType image/png "access 7 days"
162
+
163
+ ExpiresByType image/jpg "access 7 days"
164
+
165
+ ExpiresByType image/jpeg "access 7 days"
166
+
167
+ ExpiresByType text/css "access 7 days"
168
+
169
+ ExpiresByType image/x-icon "access 1 month"
170
+
171
+ ExpiresByType text/x-javascript "access 1 month"
172
+
173
+ ExpiresDefault "access 1 days"
174
+
175
+
176
+
177
+ <FilesMatch "\.(css|js|jpeg|jpg|gif|png|ico)$">
178
+
179
+ Header set Cache-Control "private, must-revalidate"
180
+
181
+ </FilesMatch>
182
+
183
+ <FilesMatch "\.(gif|png|jpeg|jpg|css)$">
184
+
185
+ ExpiresDefault "access 7 days"
186
+
187
+ Header set Cache-Control "max-age=604800"
188
+
189
+ </FilesMatch>
190
+
191
+ <FilesMatch "\.(icon|js)$">
192
+
193
+ ExpiresDefault "access 1 month"
194
+
195
+ Header set Cache-Control "max-age=2592000"
196
+
197
+ </FilesMatch>
198
+
199
+
200
+
201
+
202
+
203
+ SetEnv TZ JST-9
204
+
205
+
206
+
207
+ RewriteEngine on
208
+
209
+ RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
210
+
211
+ RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
212
+
213
+ order deny,allow
214
+
215
+
216
+
217
+ <FilesMatch "^(\.htaccess|\.txt|\.xml)$">
218
+
219
+ deny from all
220
+
221
+ </FilesMatch>
222
+
223
+
224
+
225
+ <Files ~ "^\.(htaccess|htpasswd)$">
226
+
227
+ deny from all
228
+
229
+ </Files>
230
+
231
+ RewriteEngine on
232
+
233
+ RewriteCond %{HTTP_HOST} ^(www\.test\.tsumutama\.com)(:80)? [NC]
234
+
235
+ RewriteRule ^(.*) http://test.tsumutama.com/$1 [R=301,L]
236
+
237
+ order deny,allow
238
+
239
+ ```
240
+
241
+ ```AddType text/css .css```は追記しましたが、変わりありませんでした。

4

追記

2016/03/06 23:35

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -117,3 +117,13 @@
117
117
  ```
118
118
 
119
119
  cssには日本語込みです(コメント用)。
120
+
121
+
122
+
123
+ ---
124
+
125
+
126
+
127
+ ビルダーで作ったhtml/cssを書き変えてとの指示で、JavaScriptとかのサーバサイドまったくわかってないです。
128
+
129
+ .htaccessも初めて触っています。

3

追記

2016/03/04 06:27

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -45,3 +45,75 @@
45
45
  開発者ツールをチェックしてみたところ、```href=""```は問題なくはれているみたいです。
46
46
 
47
47
  リンクをしているのにcssを反映しない理由がわかりません。
48
+
49
+
50
+
51
+ ```html
52
+
53
+ <!DOCTYPE html>
54
+
55
+ <html lang="ja">
56
+
57
+ <head>
58
+
59
+ <meta charset="Shift_JIS">
60
+
61
+ <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
62
+
63
+ <meta name="viewport" content="width=device-width, initial-scale=1"/>
64
+
65
+ <meta name="format-detection" content="telephone=no"/>
66
+
67
+ <title>fika-TOP</title>
68
+
69
+ <meta name="description" content="アンティークの雑貨ショップ「fika」です&#x266a;"/>
70
+
71
+ <meta name="keywords" content="fika,antique,雑貨,Miscellaneous goods,"/>
72
+
73
+ <link rel="stylesheet" href="container_12Eb_2c_top.css"/>
74
+
75
+ <!--[if lt IE 9]>
76
+
77
+ <script src="html5.js"></script>
78
+
79
+ <![endif]-->
80
+
81
+ <link rel="icon" href="image/favicon.ico"/>
82
+
83
+ <link rel="icon" type="vnd.microsoft.icon" href="image/favicon.ico"/>
84
+
85
+ <link rel="apple-touch-icon" href="image/favicon.ico"/>
86
+
87
+ <meta name="apple-mobile-web-app-title" content="fika-雑貨ショップ"/>
88
+
89
+ <meta name="application-name" content="fika-雑貨ショップ"/>
90
+
91
+ </head>
92
+
93
+ ```
94
+
95
+ 長いため上部のみ記載します。
96
+
97
+ ```css
98
+
99
+ @charset "Shift_JIS";
100
+
101
+ *{}
102
+
103
+ *, *:before, *:after {
104
+
105
+ -webkit-box-sizing: border-box;
106
+
107
+ -moz-box-sizing: border-box;
108
+
109
+ -o-box-sizing: border-box;
110
+
111
+ -ms-box-sizing: border-box;
112
+
113
+ box-sizing: border-box;
114
+
115
+ }
116
+
117
+ ```
118
+
119
+ cssには日本語込みです(コメント用)。

2

追記

2016/03/04 04:48

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -23,3 +23,25 @@
23
23
 
24
24
 
25
25
  レンタルサーバはさくらです。
26
+
27
+
28
+
29
+ 追記
30
+
31
+ ---
32
+
33
+ html, cssはshift-jis、エンコードもShift-JIs
34
+
35
+ JavaScriptはUTF-8です。
36
+
37
+ 今やりたいことは、CSS、JavaScriptともに読み込ませること。
38
+
39
+ 文字コードはShift-JIS
40
+
41
+ 現状、ローカルでは何も問題なく動作します。
42
+
43
+ さくらにアップするとcssの読み込みをしなくなります。(JavaScriptは読み込み可能です。)
44
+
45
+ 開発者ツールをチェックしてみたところ、```href=""```は問題なくはれているみたいです。
46
+
47
+ リンクをしているのにcssを反映しない理由がわかりません。

1

追記

2016/03/04 04:37

投稿

makoto-n
makoto-n

スコア436

test CHANGED
File without changes
test CHANGED
@@ -9,3 +9,17 @@
9
9
 
10
10
 
11
11
  [リンク](http://test.tsumutama.com/)
12
+
13
+
14
+
15
+ 追記
16
+
17
+ ---
18
+
19
+ すみません、JavaScriptは動作しているみたいでした。
20
+
21
+ cssの動作不良で気づきませんでした。
22
+
23
+
24
+
25
+ レンタルサーバはさくらです。