wapmo下载图片时,“系统找不到指定的路径”的解决?
作者:admin 日期:2009-08-13
安装 ISAPI Rewrite 组件
- 访问Helicon的官方站点
- 下载ISAPI_Rewrite Lite ( freeware )
- 在服务器上安装好ISAPI Rewrite
- 进入ISAPI安装目录,默认目录为C:\Program Files\Helicon\ISAPI_Rewrite,右键httpd.ini文件-属性,取消只读属性前的勾。
- 双击httpd.ini,在文本最下方添加如下规则,这里以wap.wapmo.cn域名为例:
RewriteCond Host: wap\.wapmo\.cn
RewriteRule /view/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=0&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: wap\.wapmo\.cn
RewriteRule /download/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=1&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
只需要替换Host: wap\.wapmo\.cn为您的域名即可,注意符号[.]要写作[\.]
请问要怎样添加几个域名,现在只是一个,比如一个服务器里可能装几个wapmo,那这几个站的域名怎么加上去呢
双击httpd.ini,在文本下添加多个域名规则,如3个域名的规则为:
RewriteCond Host: wap\.wapmo\.cn
RewriteRule /view/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=0&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: wap\.wapmo\.cn
RewriteRule /download/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=1&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: mms\.wapmo\.cn
RewriteRule /view/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=0&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: mms\.wapmo\.cn
RewriteRule /download/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=1&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: 3g\.wapmo\.cn
RewriteRule /view/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=0&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
RewriteCond Host: 3g\.wapmo\.cn
RewriteRule /download/([\d]+)/([\d]+)/[A-Za-z]+/[\d]+/([\d]+)/([\d]+)/([A-Fa-f0-9]{8})/.+\.([\w]+)[\?]*(.*) /view\.asp\?Type=1&StapleId=$1&ContentId=$2&Matter=$5&Width=$3&Height=$4&Ext=$6&$7
输入完就OK