QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1615|回复: 0

请指点 谢谢 使用.htaccess文件

[复制链接]
发表于 2006-12-22 16:22:10 | 显示全部楼层 |阅读模式
目前在做二级域名转发,在httpd.conf里边修改虚拟主机的设置,写转发规则,已经实现当访问:http://aaa.maibuni.com 隐式转发到http://www.maibuni.com/htdocs/aaa/index.html

转发规则如下:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^[a-z0-9\-]+\.maibuni\.com$
RewriteRule ^/(.*)$ /%{SERVER_NAME}/$1
RewriteRule ^/([a-z0-9\-]+)\.maibuni\.com/(.*)$ /opt/lampp/htdocs/popsnail/ $1/$2

但我的空间上不允许更改httpd.conf ,所以需要使用.htaccess文件
但写上上边同样的规则就显示错误,不知道为什么,请指教
显示错误如下:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] 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.


--------------------------------------------------------------------------------

Apache/2.2.3 (Unix) DAV/2 mod_ssl/2.2.3 OpenSSL/0.9.8d PHP/5.2.0 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at pp.maibuni.com Port 80

请指点 谢谢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-2 04:40 , Processed in 0.050208 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表