質問編集履歴

1

誤字修正

2016/10/06 05:19

投稿

brebre
brebre

スコア29

test CHANGED
File without changes
test CHANGED
@@ -1,18 +1,18 @@
1
- 現在、さくらインターネットのレンタルサーバにて、サイト(https://hoge.com)を運営しております。
1
+ 現在、さくらインターネットのレンタルサーバにて、サイト(https://example.com)を運営しております。
2
2
 
3
3
 
4
4
 
5
- お名前.comにて新たにドメイン(hoge2.com)を取得し、同一サーバ内での運営を考えています。
5
+ お名前.comにて新たにドメイン(example2.com)を取得し、同一サーバ内での運営を考えています。
6
6
 
7
7
 
8
8
 
9
- さくらインターネットの公式サイト([マルチドメインの設定](https://help.sakura.ad.jp/hc/ja/articles/206206431-%E3%83%9E%E3%83%AB%E3%83%81%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E3%81%AE%E8%A8%AD%E5%AE%9A))を参考に「hoge2」というフォルダを作り、ドメインを追加しました。
9
+ さくらインターネットの公式サイト([マルチドメインの設定](https://help.sakura.ad.jp/hc/ja/articles/206206431-%E3%83%9E%E3%83%AB%E3%83%81%E3%83%89%E3%83%A1%E3%82%A4%E3%83%B3%E3%81%AE%E8%A8%AD%E5%AE%9A))を参考に「example2」というフォルダを作り、ドメインを追加しました。
10
10
 
11
11
 
12
12
 
13
- 「https://hoge2.com」と入力すれば該当ページが表示されるかと思っていたのですが、
13
+ 「https://example2.com」と入力すれば該当ページが表示されるかと思っていたのですが、
14
14
 
15
- 「https://hoge.com/hoge2」と表示されてしまいます。
15
+ 「https://example.com/example2」と表示されてしまいます。
16
16
 
17
17
 
18
18
 
@@ -42,13 +42,13 @@
42
42
 
43
43
  RewriteCond %{THE_REQUEST} ^.*/index.php
44
44
 
45
- RewriteRule ^(.*)index.php$ https://hoge.com/$1 [R=301,L]
45
+ RewriteRule ^(.*)index.php$ https://example.com/$1 [R=301,L]
46
46
 
47
47
  RewriteEngine On
48
48
 
49
- RewriteCond %{HTTP_HOST} ^(www\.)?hoge\.sakura\.ne\.jp$ [NC]
49
+ RewriteCond %{HTTP_HOST} ^(www\.)?example\.sakura\.ne\.jp$ [NC]
50
50
 
51
- RewriteRule .* http://www.hoge.com%{REQUEST_URI} [R=301,L]
51
+ RewriteRule .* http://www.example.com%{REQUEST_URI} [R=301,L]
52
52
 
53
53
  </IfModule>
54
54
 
@@ -56,7 +56,7 @@
56
56
 
57
57
  DirectoryIndex index.html index.htm index.shtml index.php index.cgi .ht
58
58
 
59
- AuthUserFile /home/hoge/www/.htpasswd
59
+ AuthUserFile /home/example/www/.htpasswd
60
60
 
61
61
  AuthType Basic
62
62