请帮忙虚拟主机服务器是apache 怎么实现伪静态呢
2016-07-07 16:03 来源:www.chinab4c.com 作者:ecshop专家
我按照论坛里的教搞了两天了还有没有成功,导航不能实现伪静态,文章就可以,可是出现404,不知道怎么弄请高手帮忙,还有就是.htaccess的规责怎么写呢?官方的是不是错的,请高手帮忙解决一下,谢谢! |
回答:
那是你主机不支持吧 |
空间商说支持的,不知道怎么弄高手帮忙一下吧 |
1)你要确认你的虚拟主机真的是APACHE吗 2)头部导航处 不会自动变成伪静态,要去后台 自定义导航栏 里手动输入 伪静态地址 |
中国服装人网给你顶,希望楼主早日解决 |
你真是个好人呀,上次的问题也是你帮忙解决的, 我问空间了是apache的,买之前就问过可以重写不,能帮忙解决一下不,谢谢! |
请贴出你的域名, 另外你使用的 .htaccess 是ECSHOP安装包自带的吗,有没有自己修改过里面的规则 |
是的 car988.com非常感谢你 |
是的 car988.com非常感谢你下面两个那个是对的? 第一个: <FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$"> order deny,allow deny from all </FilesMatch> RewriteEngine On RewriteBase / direct one-word access RewriteRule ^index\.html$ index\.php [L] RewriteRule ^category$index\.php [L] access any object by its numeric identifier RewriteRule ^feed-c([0-9]+)\.xml$ feed\.php\?cat=$1 [L] RewriteRule ^feed-b([0-9]+)\.xml$ feed\.php\?brand=$1 [L] RewriteRule ^feed-type([^-]+)\.xml$ feed\.php\?type=$1 [L] RewriteRule ^feed\.xml$feed\.php [L] RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L] RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ category\.php\?id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L] RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$category\.php\?id=$1&brand=$2&page=$3&sort=$4&order=$5 [QSA,L] RewriteRule ^category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2&page=$3[QSA,L] RewriteRule ^category-([0-9]+)-b([0-9]+)(.*)\.html$ category\.php\?id=$1&brand=$2[QSA,L] RewriteRule ^category-([0-9]+)(.*)\.html$category\.php\?id=$1[QSA,L] RewriteRule ^goods-([0-9]+)(.*)\.html$goods\.php\?id=$1 [QSA,L] RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$article_cat\.php\?id=$1&page=$2&sort=$3&order=$4[QSA,L] RewriteRule ^article_cat-([0-9]+)-([0-9]+)-(.+)(.*)\.html$article_cat\.php\?id=$1&page=$2&keywords=$3 [QSA,L] RewriteRule ^article_cat-([0-9]+)-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1&page=$2[QSA,L] RewriteRule ^article_cat-([0-9]+)(.*)\.html$ article_cat\.php\?id=$1[QSA,L] RewriteRule ^article-([0-9]+)(.*)\.html$article\.php\?id=$1[QSA,L] RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.htmlbrand\.php\?id=$1&cat=$2&page=$3&sort=$4&order=$5 [QSA,L] RewriteRule ^brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2&page=$3 [QSA,L] RewriteRule ^brand-([0-9]+)-c([0-9]+)(.*)\.html brand\.php\?id=$1&cat=$2 [QSA,L] RewriteRule ^brand-([0-9]+)(.*)\.htmlbrand\.php\?id=$1 [QSA,L] RewriteRule ^tag-(.*)\.htmlsearch\.php\?keywords=$1 [QSA,L] RewriteRule ^snatch-([0-9]+)\.html$ snatch\.php\?id=$1 [QSA,L] RewriteRule ^group_buy-([0-9]+)\.html$ group_buy\.php\?act=view&id=$1 [QSA,L] RewriteRule ^auction-([0-9]+)\.html$auction\.php\?act=view&id=$1 [QSA,L] RewriteRule ^exchange-id([0-9]+)(.*)\.html$exchange\.php\?id=$1&act=view [QSA,L] RewriteRule ^exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ exchange\.php\?cat_id=$1&integral_min=$2&integral_max=$3&page=$4&sort=$5&order=$6 [QSA,L] RewriteRule ^exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ exchange\.php\?cat_id=$1&page=$2&sort=$3&order=$4 [QSA,L] RewriteRule ^exchange-([0-9]+)-([0-9]+)(.*)\.html$exchange\.php\?cat_id=$1&page=$2[QSA,L] RewriteRule ^exchange-([0-9]+)(.*)\.html$exchange\.php\?cat_id=$1[QSA,L] <Files ~ "^.(htaccess|htpasswd)$"> deny from all </Files> RewriteEngine on RewriteCond %{HTTP_HOST} ^(car988.com)(:80)? [NC] RewriteRule ^(.*) http://www.car988.com/$1 [R=301,L] order deny,allow 第二个: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)/index.html$ $1/index.php RewriteRule ^(.*)/category$$1/index.php[L] RewriteRule ^(.*)/feed-c([0-9]+).xml$$1/feed.php?cat=$2[L] RewriteRule ^(.*)/feed-b([0-9]+).xml$$1/feed.php?brand=$2[L] RewriteRule ^(.*)/feed-type([^-]+)\.xml$$1/feed\.php\?type=$2[L] RewriteRule ^(.*)/feed.xml$$1/feed.php[L] RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6&page=$7&sort=$8&order=$9 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-]*)(.*)\.html$ $1/category.php?id=$2&brand=$3&price_min=$4&price_max=$5&filter_attr=$6 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$$1/category.php?id=$2&brand=$3&page=$4&sort=$5&order=$6 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)-([0-9]+)(.*)\.html$$1/category.php?id=$2&brand=$3&page=$4 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)-b([0-9]+)(.*)\.html$$1/category.php?id=$2&brand=$3 [QSA,L] RewriteRule ^(.*)/category-([0-9]+)(.*)\.html$ $1/category.php?id=$2 [QSA,L] RewriteRule ^(.*)/goods-([0-9]+)(.*)\.html$ $1/goods.php?id=$2 [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]+)-(.+)(.*)\.html$$1/article_cat\.php\?id=$1&page=$2&keywords=$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]+)(.*)\.html$ $1/article_cat.php?id=$2 [QSA,L] RewriteRule ^(.*)/article-([0-9]+)(.*)\.html$$1/article.php?id=$2 [QSA,L] RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)\.html$1/brand.php?id=$2&cat=$3&page=$4&sort=$5&order=$6 [QSA,L] RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)-([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3&page=$4 [QSA,L] RewriteRule ^(.*)/brand-([0-9]+)-c([0-9]+)(.*)\.html $1/brand.php?id=$2&cat=$3 [QSA,L] RewriteRule ^(.*)/brand-([0-9]+)(.*)\.html$1/brand.php?id=$2 [QSA,L] RewriteRule ^(.*)/tag-(.*)\.html$1/search.php?keywords=$2 [QSA,L] RewriteRule ^(.*)/snatch-([0-9]+)\.html$ $1/snatch.php?id=$2 [QSA,L] RewriteRule ^(.*)/group_buy-([0-9]+)\.html$ $1/group_buy.php?act=view&id=$2 [QSA,L] RewriteRule ^(.*)/auction-([0-9]+)\.html$$1/auction.php?act=view&id=$2 [QSA,L] RewriteRule ^(.*)/exchange-id([0-9]+)(.*)\.html$$1/exchange\.php\?id=$2&act=view [QSA,L] RewriteRule ^(.*)/exchange-([0-9]+)-min([0-9]+)-max([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&integral_min=$3&integral_max=$4&page=$5&sort=$6&order=$7 [QSA,L] RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)-(.+)-([a-zA-Z]+)(.*)\.html$ $1/exchange\.php\?cat_id=$2&page=$3&sort=$4&order=$5 [QSA,L] RewriteRule ^(.*)/exchange-([0-9]+)-([0-9]+)(.*)\.html$$1/exchange\.php\?cat_id=$2&page=$3[QSA,L] RewriteRule ^(.*)/exchange-([0-9]+)(.*)\.html$$1/exchange\.php\?cat_id=$2[QSA,L] </IfModule> |
高手谢谢你的回答我已经搞好了,真非常感谢你 |
学习学习 |
好复杂。不同空间环境设置方法不同吧 |
要空间商联系解决! |
大家有什么好看法,赶快说说 中变英雄合击www.23mtv.com |
最近更新
常用插件
- ecshop没登陆情况下订单查
ecshop没登陆情况下订单查询插件,主要是针对ecshop在没有登陆的情况下...
- ecshop订单聚合插件
ecshop订单聚合插件,主要是为了方便ecshop中订单产品到货情况的分析和...
- ecshop注册审核插件
ecshop插件介绍:ecshop会员注册审核插件,主要是在前台提供给注册的时候...
- ecshop的oss插件
ecshop的oss插件免费共享了,oss,ecshoposs...
- ecshop虚拟发货插件
ecshop虚拟发货插件介绍: ecshop虚拟发货插件,主要为了通过后台手动录...
ecshop热门问答
ecshop热门资料
ecshop130
ecshop时好时坏
ecshop惨痛
ecshop报修
ecshopamiwu
ecshop宝马5系
ecshop货到付款?
ecshop404错误页面
ecshop确认收货
ecshop146
ecshop男装
ecshop采集
ecshop人气
ecshoprmb
ecshop发表
ecshop使用经验
ecshop卡马
ecshop明天会更好。
ecshop下载链接
ecshopdoes
ecshop文档
ecshop程序错误
ecshop肯定
ecshop百科
ecshop经验总结
ecshop对象
订单统计
zen cart下架商品
ecshop建议
ecshop页角