densie786 发表于 2016-3-28 15:20:28

.htaccess 我换了阿里云虚拟主机怎么改代码

怎么改.htaccess 在阿里云虚拟主机能显示下面的二级页面和下面的子页面
# 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

怎么改

liupt 发表于 2016-3-28 17:27:54


模块列表和内容页么

zhao90 发表于 2016-3-28 17:39:11


你原来服务器也是虚拟主机吗?

densie786 发表于 2016-3-28 18:21:43


对的,我原来也是虚拟主机

joy 发表于 2016-3-29 08:37:58


这个服务器支持伪静态吗

龙在天涯 发表于 2016-3-29 08:43:58


虚拟主机需要联系空间商,看是否支持伪静态
页: [1]
查看完整版本: .htaccess 我换了阿里云虚拟主机怎么改代码