[提问]
急,版主帮忙啊 htaccess 目录500问题
|
|
我刚换了一个IX的小空间 同IP下想放多个网站 htaccess设置如下:
DirectoryIndex default.php index.htm index.php index.html default.htm default.html index.shtml default.shtml
RewriteEngine On
Options All -Indexes
php_value upload_max_filesize 20M
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/B网站目录/.*
RewriteCond %{HTTP_HOST} =B网站域名
RewriteRule ^(.*) /B网站目录/$1 [L]
ErrorDocument 401 /404.htm
ErrorDocument 403 /404.htm
ErrorDocument 404 /404.htm
ErrorDocument 500 /404.htm
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
说明一下
A网站是独立IP下新建的网站 WordPress 的 使用404自定义的固定连接
B网站是A网站下的一个文件夹 IP已经绑定好 能正常访问
问题 访问B网站时 如果输入错误地址 会出现500错误
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
我想定义一个B网站专用的404错误页 但是在B网站下建立htaccess 无效果 还是500错误
问题2 地址http://B网站域名/A网站的B网站目录 同样也可以打开 (这样对搜索引擎很不友好吧,我想去掉这个目录能访问的)
请管理员帮帮忙啊 感激不尽! |
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2010-12-23 13:47:47
|
显示全部楼层
那种方法,也有遇到过会员不行的..
那个地址目前没有办法处理..而且那个网站的目录还有可能出现问题.
建议还是添加域名那样.. |
|
|
|
|
|
|
|
|
|
|
icccs
发表于 2010-12-23 13:55:40
|
显示全部楼层
添加域名就是共享IP了 用几天都挂掉了
404这个问题就解决的方法吗?
我试过多种方法 感觉好像是
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
这段代码和B网站的404这些有冲突是的呢 |
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2010-12-23 14:01:04
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
icccs
发表于 2010-12-23 14:05:55
|
显示全部楼层
删除了以后 A网站的目录结构变了 内容都打不开 (A网站已经都收录很多了 不能改固定连接了) |
|
|
|
|
|
|
|
|
|
|
gypworks526
发表于 2010-12-23 15:38:53
|
显示全部楼层
建议还是新建域名。。。
到目前发现IX的共享IP还是很少被封的。。 |
|
|
|
|
|
|
|
|