这个是带泛域名功能的,另一个是输入WWW打开的页面,
网站同在一个目录内,我现在服务器换成WIN2003在IIS下不知道如何设置了,帮忙看看
主要是下面这个带泛域名的需要先读取go.php然后跳转<VirtualHost *:80>
ServerName *.123.com
ServerAlias *.123.com
DocumentRoot c:/wwwroot/www5
ErrorLog "logs/a.ljgoo.com-error.log"
CustomLog "logs/a.ljgoo.com-access.log" common <LocationMatch ^/go.php>
Order allow,deny
allow from all
</LocationMatch> DirectoryIndex go.php <IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^(http://)?(www\.)?([a-zA-Z]+)\.ljgoo\.com/company/(.*)$ http://www.ljgoo.com/company/index.php?city=$3
#RewriteRule ^(.*)$ /go.php
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5
RewriteRule ^(.*)/zb/$ $1/zb/index.php
RewriteRule ^(.*)/(zsj|sqk|company)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)/$ $1/$2/index.php?orderid=$3&a2=$4&a3=$5&a4=$6&a5=$7&a6=$8&a7=$9
RewriteRule ^(.*)/sqk/$ $1/sqk/index.php
RewriteRule ^(.*)/company/$ $1/company/index.php
#RewriteRule ^(.*)$ /go.php
RewriteRule ^(.*)/([a-z]+)/([a-z]+)([0-9]+)/$ $1/$2/$3.php?uid=$4
RewriteRule ^(.*)/(sjs|yz|zs|sj)/([0-9]+)/?$ $1/$2/index.php?uid=$3
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([0-9]*)([a-z]+)([0-9]?)-([0-9a-z]+)-([0-9]+).html$ $1/$2/$5.php?uid=$3&act=$7&gate=$4&exe=$6&page=$8
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([a-z]+)-display-([a-z]+)([0-9]+).html$ $1/$2/$4.php?uid=$3&act=display&$5id=$6
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-([0-9]+)(s([0-9]+))?(i([0-9]+))?p?([0-9]+)?$ $1/$2/$3.php?btype=$4&stype=$6&id=$8&page=$9
</IfModule></VirtualHost>
这个是主站的,
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.123.com
ServerAlias www.123.com
DocumentRoot c:/wwwroot/www5/ <IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/(zsj|sqk|company)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)/$ $1/$2/index.php?orderid=$3&a2=$4&a3=$5&a4=$6&a5=$7&a6=$8&a7=$9
# RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
# RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
# RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
# RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
# RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
RewriteRule ^(.*)/bbs/images/(.*) $1/bbs/images/$2
RewriteRule ^(.*)/bbs/(.*) http://bbs.ljgoo.com/$2
RewriteRule ^(.*)/([a-z]+)/([a-z]+)([0-9]+)/$ $1/$2/$3.php?uid=$4
RewriteRule ^(.*)/(sjs|yz|zs|sj)/([0-9]+)/?$ $1/$2/index.php?uid=$3
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([0-9]*)([a-z]+)([0-9]?)-([0-9a-z]+)-([0-9]+).html$ $1/$2/$5.php?uid=$3&act=$7&gate=$4&exe=$6&page=$8
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([a-z]+)-display-([a-z]+)([0-9]+).html$ $1/$2/$4.php?uid=$3&act=display&$5id=$6
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-([0-9]+)(s([0-9]+))?(i([0-9]+))?p?([0-9]+)?$ $1/$2/$3.php?btype=$4&stype=$6&id=$8&page=$9
# RewriteRule ^(.*)/(case)/(c)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm
#RewriteRule ^(.*)/([a-z]+)/(a|m)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)h.html$ $1/html/$2/$3$4h.html
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-h([0-9]+)(s([0-9]+))?(i([0-9]+))?$ $1/html/$2/$3-h$4$5$7.html
RewriteRule ^(.*)/zt([0-9]+)/$ $1/zt/topic.php?zid=$2
RewriteRule ^(.*)/zt([0-9]+)/([a-z_]+)([0-9]+).html$ $1/zt/$3.php?zid=$2&type=$4
</IfModule>
</VirtualHost>
网站同在一个目录内,我现在服务器换成WIN2003在IIS下不知道如何设置了,帮忙看看
主要是下面这个带泛域名的需要先读取go.php然后跳转<VirtualHost *:80>
ServerName *.123.com
ServerAlias *.123.com
DocumentRoot c:/wwwroot/www5
ErrorLog "logs/a.ljgoo.com-error.log"
CustomLog "logs/a.ljgoo.com-access.log" common <LocationMatch ^/go.php>
Order allow,deny
allow from all
</LocationMatch> DirectoryIndex go.php <IfModule mod_rewrite.c>
RewriteEngine On
#RewriteRule ^(http://)?(www\.)?([a-zA-Z]+)\.ljgoo\.com/company/(.*)$ http://www.ljgoo.com/company/index.php?city=$3
#RewriteRule ^(.*)$ /go.php
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5
RewriteRule ^(.*)/zb/$ $1/zb/index.php
RewriteRule ^(.*)/(zsj|sqk|company)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)/$ $1/$2/index.php?orderid=$3&a2=$4&a3=$5&a4=$6&a5=$7&a6=$8&a7=$9
RewriteRule ^(.*)/sqk/$ $1/sqk/index.php
RewriteRule ^(.*)/company/$ $1/company/index.php
#RewriteRule ^(.*)$ /go.php
RewriteRule ^(.*)/([a-z]+)/([a-z]+)([0-9]+)/$ $1/$2/$3.php?uid=$4
RewriteRule ^(.*)/(sjs|yz|zs|sj)/([0-9]+)/?$ $1/$2/index.php?uid=$3
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([0-9]*)([a-z]+)([0-9]?)-([0-9a-z]+)-([0-9]+).html$ $1/$2/$5.php?uid=$3&act=$7&gate=$4&exe=$6&page=$8
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([a-z]+)-display-([a-z]+)([0-9]+).html$ $1/$2/$4.php?uid=$3&act=display&$5id=$6
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-([0-9]+)(s([0-9]+))?(i([0-9]+))?p?([0-9]+)?$ $1/$2/$3.php?btype=$4&stype=$6&id=$8&page=$9
</IfModule></VirtualHost>
这个是主站的,
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName www.123.com
ServerAlias www.123.com
DocumentRoot c:/wwwroot/www5/ <IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)/(zsj|sqk|company)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.*)/$ $1/$2/index.php?orderid=$3&a2=$4&a3=$5&a4=$6&a5=$7&a6=$8&a7=$9
# RewriteRule ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2
# RewriteRule ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3
# RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3
# RewriteRule ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3
# RewriteRule ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2
RewriteRule ^(.*)/bbs/images/(.*) $1/bbs/images/$2
RewriteRule ^(.*)/bbs/(.*) http://bbs.ljgoo.com/$2
RewriteRule ^(.*)/([a-z]+)/([a-z]+)([0-9]+)/$ $1/$2/$3.php?uid=$4
RewriteRule ^(.*)/(sjs|yz|zs|sj)/([0-9]+)/?$ $1/$2/index.php?uid=$3
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([0-9]*)([a-z]+)([0-9]?)-([0-9a-z]+)-([0-9]+).html$ $1/$2/$5.php?uid=$3&act=$7&gate=$4&exe=$6&page=$8
RewriteRule ^(.*)/([a-z]+)/([0-9]+)/([a-z]+)-display-([a-z]+)([0-9]+).html$ $1/$2/$4.php?uid=$3&act=display&$5id=$6
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-([0-9]+)(s([0-9]+))?(i([0-9]+))?p?([0-9]+)?$ $1/$2/$3.php?btype=$4&stype=$6&id=$8&page=$9
# RewriteRule ^(.*)/(case)/(c)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm
#RewriteRule ^(.*)/([a-z]+)/(a|m)(([0-9]?)([0-9]?)([0-9]?)[0-9]*).html$ $1/cache/$3/$5/$6/$7/$4.htm
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)-?([0-9]+)?.html$ $1/$2/$3.php?id=$4&page=$5
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)([0-9]+)h.html$ $1/html/$2/$3$4h.html
RewriteRule ^(.*)/([a-z]+)/([a-z_]+)-h([0-9]+)(s([0-9]+))?(i([0-9]+))?$ $1/html/$2/$3-h$4$5$7.html
RewriteRule ^(.*)/zt([0-9]+)/$ $1/zt/topic.php?zid=$2
RewriteRule ^(.*)/zt([0-9]+)/([a-z_]+)([0-9]+).html$ $1/zt/$3.php?zid=$2&type=$4
</IfModule>
</VirtualHost>
解决方案 »
- 关于返回上一页的种种写法(php)100分悬赏
- 奇怪,php.5.2.14配置后不能连接mysql?
- 关于线程安全与非线程安全的【疑惑】
- php如何读取linux下面的etc下面的文件
- 请教打算申请PHP空间,选什么系统的好,windows2003还是Linux?
- 网站上鼠标点击可以拖拽的效果
- 关于数据库连接代码的问题
- ob函数怪现象,怎样使用回掉函数而使implicit_flush功能不致失效?
- 那里有php+Oracle的源代码!网上好象都是php+mysql的源代码,我现在需要学习php+Oracle,谁提供一点我将非常感谢!
- 点击列头进行排序(表格中的数据为动态数据)
- 下载文件
- php网页内容抓取的问题
泛解析我已经弄好了
但伪静态,怎么设置都不行,是不是APACHE下的伪静态在IIS下不能用啊
但我把规则放在IIS上就不能用了,估计是不兼容,兄弟能不能帮我改一下,让IIS能兼容读取啊