.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
怎么改
模块列表和内容页么
你原来服务器也是虚拟主机吗?
对的,我原来也是虚拟主机
这个服务器支持伪静态吗
虚拟主机需要联系空间商,看是否支持伪静态
页:
[1]