原本用的是原生的apache系统,
网站的伪静态是写在apache的httpd-vhosts.conf里面的, upupw很好用,于是打算把该网站迁移到upupw的K版里,K版的伪静态是放在根目录的.htaccess里面的~ 那么我直接复制可以么,要不要修改下格式呢? 因为我直接复制后就不生效了啊, httpd-vhosts.conf.conf内的原规则代码如下如下: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/(.*)/(.*)/index.html$ $1/index\.php\?$2&nid=$3 RewriteRule ^(.*)/(.*)/(.*)/index(.*).html$ $1/index\.php?$2&nid=$3&page=$4 RewriteRule ^(.*)/(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&nid=$3&article_id=$4 RewriteRule ^(.*)/(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&nid=$3&article_id=$4&$5 RewriteRule ^(.*)/(.*)/index.html$ $1/index\.php\?$2 RewriteRule ^(.*)/(.*)/index(.*).html$ $1/index\.php\?$2&page=$3 RewriteRule ^(.*)/(.*)/index(.*).html\?(.*)$ $1/index\.php\?$2&page=$3&$4 RewriteRule ^(.*)/(.*)/a(.*)_(.*).html$ $1/index\.php\?$2&article_id=$3&page=$4 RewriteRule ^(.*)/(.*)/a(.*).html$ $1/index\.php\?$2&article_id=$3 RewriteRule ^(.*)/(.*)/a(.*).html?(.*)$ $1/index\.php\?$2&article_id=$3&$4 </IfModule> 复制的时候我已经去除了首尾的<IfModule mod_rewrite.c>和</IfModule> |
|
沙发#
发布于:2014-12-11 14:52
|
|
板凳#
发布于:2015-01-22 17:28
|
|