*.com;另外域名也做好泛解析,就可以实现泛解析了,但我这边试了一下,不成,请高手指教,目前的配置文件是这样的:
# Destoon B2B 3.0 Rewrite Rules
server_name *.hnnmw.com;
rewrite ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php;
rewrite ^(.*)-htm-(.*)$ $1.php?$2;
rewrite ^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$ $1/show.php?itemid=$2&page=$4;
rewrite ^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ $1/list.php?catid=$2&page=$4;
rewrite ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show.php?itemid=$2&page=$3;
rewrite ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list.php?catid=$2&page=$3;
rewrite ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3;
rewrite ^(.*)/com/([a-z0-9]+)/([a-z]+)/(.*)\.html$ $1/company/$3/index.php?homepage=$2&rewrite=$4;
rewrite ^(.*)/com/([a-z0-9]+)/([a-z]+)([/])?$ $1/company/$3/index.php?homepage=$2;
rewrite ^(.*)/com/([a-z0-9]+)([/])?$ $1/company/index.php?homepage=$2;
rewrite ^([a-z0-9]+)\.co([/])?$ company/index.php?homepage=$1;
rewrite ^([a-z0-9]+)\.co/(.*)$ company/index.php?homepage=$1&rewrite=$2;
rewrite ^(htm)/(.*)$ index.php?&rewrite=$2;
我的网站是www.***.com 现在点那些公司虽然是二级域名了,但都直接显示的是首页!
[ ]