1

我正在尝试重定向到保留目录的不同域,例如:

example.org/user/test

将被定向到:

example.com/user/test

我正在使用 Zend 框架,所以这就是我的 .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