skylcf_2012 发表于 2015-10-27 14:51:44

linux+lnamp环境 配置二级域名

企业使用二级域名,环境是linux+lnamp,二级域名中企业页面产品详细页不存在,是神马回事呀?
泛解析如下:
# Destoon B2B Rewrite Rules
ErrorDocument 404 /404.php
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php
RewriteRule ^(.*)/file/(.*)\.php(.*)$ /404.php
RewriteRule ^(.*)-htm-(.*)$ $1.php?$2
RewriteRule ^(.*)/show-(+)([\-])?(+)?\.html$ $1/show.php?itemid=$2&page=$4
RewriteRule ^(.*)/list-(+)([\-])?(+)?\.html$ $1/list.php?catid=$2&page=$4
RewriteRule ^(.*)/(+)-c(+)-(+)\.html$ $1/list.php?catid=$3&catdir=$2&page=$4
RewriteRule ^(.*)/show/(+)/(+)?([/])?$ $1/show.php?itemid=$2&page=$3
RewriteRule ^(.*)/list/(+)/(+)?([/])?$ $1/list.php?catid=$2&page=$3
RewriteRule ^(.*)/(+)/(.*)\.shtml$ $1/$2/index.php?rewrite=$3
RewriteRule ^(com)/(+)/(+)/(.*)\.html$ index.php?homepage=$2&file=$3&rewrite=$4
RewriteRule ^(com)/(+)/(+)([/])?$ index.php?homepage=$2&file=$3
RewriteRule ^(com)/(+)([/])?$ index.php?homepage=$2
#Apache .conf Rules (Replace line 12 & line 13 & line 14)
#RewriteRule ^(.*)/com/(+)/(+)/(.*)\.html$ $1/index.php?homepage=$2&file=$3&rewrite=$4
#RewriteRule ^(.*)/com/(+)/(+)([/])?$ $1/index.php?homepage=$2&file=$3
#RewriteRule ^(.*)/com/(+)([/])?$ $1/index.php?homepage=$2

龙在天涯 发表于 2015-10-28 08:38:34


安装的是apache还是nginx服务

joy 发表于 2015-10-28 11:28:44


楼主是伪静态规则问题吧你换成动态的可以正常打开吧

skylcf_2012 发表于 2015-10-28 11:56:03


是lnamp环境中使用.htaccess

skylcf_2012 发表于 2015-10-28 12:12:31


恩,动态的可以打开、

zhao90 发表于 2015-10-28 17:48:30


动态可以 那就是伪静态规则设置的问题

joy 发表于 2015-10-30 10:46:54


楼主 你的是5.0还是6.0

skylcf_2012 发表于 2015-10-30 11:39:54


版本是5.0

darksww 发表于 2015-11-24 20:34:16


楼主解决了吗
页: [1]
查看完整版本: linux+lnamp环境 配置二级域名