分享

写回答

发帖

[提问] 安装伪静态型的网站出了问题,希望版主帮忙一下!

GoDaddy GoDaddy 2690 人阅读 | 12 人回复

发表于 2010-11-28 13:02:45 | 显示全部楼层 |阅读模式

各位大侠,大哥大姐们,帮我看下,问题出现在什么地方,我该怎么处理!!!

我卖的是LX的空间,空间安装了3,4个站,都是PHP的,现在我在该空间下再次开一个站出来。但是传进去的伪静态网站代码无法运行,如果把该网站目录下的伪静态规则去掉呢,还可以安装东西(但是安装到最后面提示数据库版本太低,本来数据库版本都是5.0的,他却提示是低于 了4.1),不去掉就什么也动不了。
现在我该怎么来处理,让网站可以安装,不会出现数据库版本过低,并正常的启动伪静态规则!

回答|共 12 个

ebow

发表于 2010-11-28 20:53:12 | 显示全部楼层

版主今天一天都没来看过啊!
RAKSmart

tpxp

发表于 2010-11-28 21:56:21 | 显示全部楼层

什么程序

ebow

发表于 2010-11-29 09:00:15 | 显示全部楼层

安乐业的房产程序!http://zs.yooju.com 这种!

add.c

发表于 2010-11-29 09:12:06 | 显示全部楼层

把程序的下载地址发来看
另外你如何设置的 ? 把你的php.ini和htaccess代码贴出来看

ebow

发表于 2010-11-29 10:37:02 | 显示全部楼层

伪静态规则:htaccess

RewriteEngine On

RewriteRule ^index\.html$ index.php [L]
RewriteRule ^sale/d-(.*?)\.html$ sale/detail.php?id=$1 [L]
RewriteRule ^rent/d-(.*?)\.html$ rent/detail.php?id=$1 [L]

RewriteRule ^newHouse/d-(.*?)\.html$ newHouse/detail.php?id=$1 [L]
RewriteRule ^newHouse/p-(.*?)\.html$ newHouse/photo.php?id=$1 [L]
RewriteRule ^newHouse/s-(.*?)\.html$ newHouse/structure.php?id=$1 [L]

RewriteRule ^community/g-(.*?)\.html$ community/general.php?id=$1 [L]
RewriteRule ^community/p-(.*?)\.html$ community/photo.php?id=$1 [L]
RewriteRule ^community/d-(.*?)\.html$ community/structure.php?id=$1 [L]

RewriteRule ^shop/([0-9]+)$ shop/index.php?id=$1 [L]
RewriteRule ^shop/e-(.*?)\.html$ shop/evaluate.php?id=$1 [L]
RewriteRule ^shop/p-(.*?)\.html$ shop/profile.php?id=$1 [L]


RewriteRule ^([0-9]+)/spacelist(.+)$ index.php?uid/$1/action/spacelist/type$2 [L]
RewriteRule ^([0-9]+)/viewspace(.+)$ index.php?uid/$1/action/viewspace/itemid$2 [L]
RewriteRule ^([0-9]+)/viewbbs(.+)$ index.php?uid/$1/action/viewbbs/tid$2 [L]
RewriteRule ^([0-9]+)/(.*)$ index.php?uid/$1/$2 [L]
RewriteRule ^([0-9]+)$ index.php?uid/$1 [L]

RewriteRule ^action(.+)$ index.php?action$1 [L]
RewriteRule ^category(.+)$ index.php?action/category/catid$1 [L]
RewriteRule ^viewnews(.+)$ index.php?action/viewnews/itemid$1 [L]
RewriteRule ^viewthread(.+)$ index.php?action/viewthread/tid$1 [L]
RewriteRule ^mygroup(.+)$ index.php?action/mygroup/gid$1 [L]

ebow

发表于 2010-11-29 10:49:34 | 显示全部楼层

最主要就是要解决,把那个.htaccess文件已传进这个目录后,网站就无法运行了,一删除就可以了!(不传这个文件上去,有些地方会出错!)
但是我在国内的空间传上去痘能运行!

add.c

发表于 2010-11-29 11:06:23 | 显示全部楼层

.htaccess文件要放到网站所在的目录。 如果你一放这个文件就报错,可能是伪静态规则问题,
另外伪静态你可在程序后台开启了?

ebow

发表于 2010-11-29 11:13:33 | 显示全部楼层

开启 了的哦!

ebow

发表于 2010-11-29 11:13:52 | 显示全部楼层

我的意思是不是要在什么空间设置一下。还是怎么样?
您需要登录后才可以回帖 登录 | 注册

本版积分规则