[提问]
windows转linux主机后,同样内容网站打不开
|
|
windows转linux主机后,同样内容网站打不开.
网站程序是PHP的,在windows主机打开正常,网站程序需支持伪静态,故转到linux主机,但是无法打开网页,提示
Warning: include_once(include/smarty/smarty.class.php) [function.include-once]: failed to open stream: No such file or directory in /home/content/g/9/9/g9999/html/global.php on line 2
Warning: include_once() [function.include]: Failed opening 'include/smarty/smarty.class.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/g/9/9/g9999/html/global.php on line 2
Fatal error: Class 'Smarty' not found in /home/content/g/9/9/g9999/html/global.php on line 9 |
|
|
|
|
|
|
|
|
|
|
jt163
发表于 2010-8-5 16:15:21
|
显示全部楼层
windows IIS7主机一样支持伪静态的啊!
将下面的代码复制,保存为web.config文件,然后把它放到DZ论坛目录下!我的就是这样解决的!- <?xml version="1.0" encoding="UTF-8"?>
- <configuration>
- <system.webServer>
- <rewrite>
- <rules>
- <rule name="Imported Rule 17">
- <match url="^archiver/((fid|tid)-[\w\-]+\.html)$" ignoreCase="false" />
- <action type="Rewrite" url="archiver/index.php?{R:1}" appendQueryString="false" />
- </rule>
- <rule name="Imported Rule 18">
- <match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
- <action type="Rewrite" url="forumdisplay.php?fid={R:1}&page={R:2}" appendQueryString="false" />
- </rule>
- <rule name="Imported Rule 19">
- <match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
- <action type="Rewrite" url="viewthread.php?tid={R:1}&extra=page\%3D{R:3}&page={R:2}" appendQueryString="false" />
- </rule>
- <rule name="Imported Rule 20">
- <match url="^space-(username|uid)-(.+)\.html$" ignoreCase="false" />
- <action type="Rewrite" url="space.php?{R:1}={R:2}" appendQueryString="false" />
- </rule>
- <rule name="Imported Rule 21">
- <match url="^tag-(.+)\.html$" ignoreCase="false" />
- <action type="Rewrite" url="tag.php?name={R:1}" appendQueryString="false" />
- </rule>
- </rules>
- </rewrite>
- <httpErrors errorMode="Detailed" />
- <asp scriptErrorSentToBrowser="true" />
- </system.webServer>
- <system.web>
- <customErrors mode="Off" />
- <globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
- </system.web>
- </configuration>
复制代码
[ 本帖最后由 jt163 于 2010-8-5 04:19 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
sun2008
发表于 2010-8-5 16:33:21
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
wvq111
发表于 2010-8-5 16:46:37
|
显示全部楼层
试了也不行
|
我试过多个web.config都不行.如是目录问题应该怎么操作. |
|
|
|
|
|
|
|
|
|
|
wvq111
发表于 2010-8-5 16:54:03
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2010-8-6 11:17:11
|
显示全部楼层
|
|
|
|
|
|
|
|