destoon apache企业二级域名完美解决办法

4月 1, 2014 destoon

在apache的 host.conf 泛解析加入下面格式

DocumentRoot D:/www/www.××××××.com/company/
ServerName destoon.com
ServerAlias *.destoon.com
RewriteEngine On
ErrorDocument 404 /404.php
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3

后台seo优化
公司主页绑定二级域名 .xxxxx.com
泛解析绑定目录 /company/
解析*.xxxx.com
新建绑定指向目录 /company/ 如果改过模块名称这里指向名称文件夹 OK

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注