URLRewrite的问题
2016-07-07 15:12 来源:www.chinab4c.com 作者:ecshop专家
我的服务器上本来就有一个.htaccess文件,,我试过把他换成EC的,,就出现网站无法浏览,把EC的.htaccess的内容复制过去也不行,,空间自带的.htaccess里面的内容如下..请帮我看看,,谢.下面代码做了点掩饰 # -FrontPage- #Options None <Limit GET POST PUT DELETE> order deny,allow deny from all </Limit> AuthName youname.com AuthUserFile /www/users/...... AuthGroupFile /www/users/..... |
回答:
您试试把我们的附加到最后面看看。 如果不行的话,也别着急,我们再准备出一个放到 httpd.conf 的 rewrite 版本,应该是放到 2.1.2 版本。 |
rewrite太浪费资源 |
原帖由 zgxiangdu 于 2006-11-18 23:05 发表 用.htaccess会降低性能;把下面这个放到 httpd.conf 里就可以用了 <IfModule mod_rewrite.c> RewriteEngine On # direct one-word access RewriteRule ^(.*)/category$$1/index.php[L] RewriteRule ^(.*)/feed.xml$$1/feed.php[L] # access any object by its numeric identifier RewriteRule ^(.*)/category-([0-9]+)\.html$ $1/category.php?id=$2[QSA,L] RewriteRule ^(.*)/category-([0-9]+)-(.*)\.html$$1/category.php?id=$2[QSA,L] RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)\.html$ $1/category.php?id=$2&page=$3[QSA,L] RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)-(.*)\.html$$1/category.php?id=$2&page=$3[QSA,L] RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$$1/category.php?id=$2&page=$3&sort=$4&order=$5 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(.*)\.html$ $1/category.php?id=$2&page=$3&sort=$4&order=$5 [QSA,L] RewriteRule ^(.*)/goods-([0-9]+)\.html$ $1/goods.php?id=$2 [QSA,L] RewriteRule ^(.*)/goods-([0-9]+)-(.*)\.html$$1/goods.php?id=$2 [QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)\.html$$1/article_cat.php?id=$2[QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)-(.*)\.html$$1/article_cat.php?id=$2[QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)\.html$ $1/article_cat.php?id=$2&page=$3[QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.*)\.html$$1/article_cat.php?id=$2&page=$3[QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$$1/article_cat.php?id=$2&page=$3&sort=$4&order=$5[QSA,L] RewriteRule ^(.*)/article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)-(.*)\.html$ $1/article_cat.php?id=$2&page=$3&sort=$4&order=$5[QSA,L] RewriteRule ^(.*)/article-([0-9]+)\.html$$1/article.php?id=$2[QSA,L] RewriteRule ^(.*)/article-([0-9]+)-(.*)\.html$$1/article.php?id=$2[QSA,L] RewriteRule ^(.*)/search-b([0-9]+)\.html$1/search.php?brand=$2 [QSA,L] RewriteRule ^(.*)/search-b([0-9]+)-(.*)\.html $1/search.php?brand=$2 [QSA,L] </IfModule> |
eccom 放到httpd.conf 还是不能用,是什么原因呢? |
应该做一些小修改:以下是我测试成功的规则,直接点击下方的复制代码即可使用
|
可以使用啊 |
最近更新
常用插件
- ecshop二次开发商品购买备
ecshop销售统计 插件介绍:ecshop二次开发订单销售统计和商品购买备注服...
- ecshop会员中心订单excel倒出
ecshop会员中心订单excel倒出...
- ecshop2.7.2退换货申请插件
ecshop2.7.2退换货申请插件,主要是在 ecshop 现在的基础上,对ecshop的订单处...
- ecshop二次商品订购人信息
ecshop二次商品订购人信息填写插件,有时候给朋友送花,或者是送礼品的...
- ecshop注册推荐送现金插件
ecshop中的促销售功能还不是很完善,随着电子商务系统的发展和进步,...
ecshop热门问答
ecshop热门资料
ecshop老杨ECSHOP
ecshop预测
ecshop支付宝发货同步
ecshop1065
ecshop针对性
ecshop标准化
ecshop潮流前线
ecshop外包网站维护
ecshopcontact
ecshopvidoe
ecshop模板规范
ecshop跟随
ecshop虚拟服务器
ecshopdigit;模版;底色
ecshop执行力
ecmal常见问题
ecshopname
ecshopecmall功能
ecshoppayday
ecshop工作量
ecshop无知
ecshop玩具店
ecshopThe
ecshop铁通
ecshop帅哥美女
ecshop美化
ecshop质量
ecshop首页错误
ecshop万网独享
ecshop免费模板