已经解决:二级域名下地伪静态错误,求解
URL Rewrite(伪静态)开启正常公司主页绑定二级域名 按照官方的方法设置后.如果填写 i.destoon.com 同时需要将域名泛解析
i.destoon.com 指向服务器IP,并且在服务器端绑定域名至网站根目录/company 目录,生成的主页形式为
i.destoon.com/username/(注:此方式必须支持伪静态), 访问公司主页后,返回404页面.在论坛里找了很久还
是不能解决.主机是APACHE,泛解析正常*.xxx.com、i. xxx.com.解析并绑定到有务器正常,、.htaccess直接
复制官方教程正常,后台设置正确,公司主页始终反回到404。
请官方或之前有遇到这类情况的朋友,提供解决办法,谢谢!
[ 本帖最后由 chemstudy 于 2012-7-16 10:08 编辑 ]
可以在apache 的配置文件中,对该虚拟主机单独设置伪静态:
DocumentRoot /www/company1
ServerName cn.abd.com
RewriteEngine on
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
RewriteRule ^(.*)/file/(.*)\.php(.*)$ /404.php
RewriteRule ^(.*)/(+)/(+)/(.*)\.shtml$ $1/index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(.*)/(+)/(+)([/])?$ $1/index.php?homepage=$2&file=$3
RewriteRule ^(.*)/(+)([/])?$ $1/index.php?homepage=$2
DirectoryIndex index.htmlindex.php
Order Deny,Allow
Allow from all
页:
[1]