(example.com)
実際には、godaddy ホスティング アカウントでホストされている単一のドメインを持っていましたが、最近(example2.com)
、同じホスティング アカウントでホストしている両方のドメインを別の 1 つのドメインを購入しました。
次に、両方のドメインのパスを教えてください。
example.com in on the / folder
example2.com in on the /example2 folder
私は自分のドメインで 3 つのサブドメインをexample.com
作成し、ホスティング アカウントは / ディレクトリに同じサブドメインのフォルダーを作成しました。
言ってみましょうdemo.example.com
、フォルダは/demo
次に、2 番目のドメインに進みます。最近、自分用のサブドメインを作成しました。example2.com
私の2番目のドメインがフォルダーにあるため、それはtest.example2.com
フォルダーのルートにあるのとは異なります/test
/example2/test
/example2
問題は、.htaccess ファイルを有効にしたときですtest.example2.com
。
500 Internal Server Error
AddDefaultCharset UTF-8
ErrorDocument 404 /404error.php
Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule (.*)([^/])$ http://%{HTTP_HOST}/$1$2/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{HTTP_HOST} !^localhost
RewriteRule .* http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteRule ^(all)/([^/]+)/?$ story.php?title=$2 [L]
RewriteRule ^(all)/?$ index.php [R=301,L]
ここに.htaccess
ファイルの一部がありますが、htaccess がなくても問題なく動作しています。RewriteBase
私も好きで試しましたRewriteBase /test/
とRewriteBase /example2/test/
しかし、役に立ちませんでした。問題がどこにあるのか、この問題をどのようにデバッグすればよいのか教えてもらえますか?
しかし、これの残りの部分は私の他のサブドメインが正常に動作しています。
エラーログの更新
[Tue Oct 16 21:47:04 2012] [alert] [client 110.172.129.110] /var/chroot/home/content/06/8871106/html/bestsocialbookmark/.htaccess: Option All not allowed here
[Tue Oct 16 21:47:07 2012] [alert] [client 110.172.129.110] /var/chroot/home/content/06/8871106/html/bestsocialbookmark/.htaccess: Option All not allowed here
本当なので、意味がわかりません。