1

ディレクトリを保持している別のドメインにリダイレクトしようとしています。たとえば、次のようになります。

example.org/user/test

次の宛先に送信されます。

example.com/user/test

私は Zend Framework を使用しているので、これが私の .htaccess にあるものです:

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.org$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

php_value "short_open_tag" "on"

しかし、ブラウザから取得しているのは次のとおりです。

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, cgiadmin@yourhostingaccount.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.

誰でもこの問題で私を助けてくれますか? なぜこうなった?私の .htaccess は間違っていますか?

4

0 に答える 0