我正在尝试重定向到保留目录的其他域,例如:
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错了吗?