开启伪静态,但是报500错误,服务商说他们已经开启了,只要修改文件

2016-07-07 15:11 来源:www.chinab4c.com 作者:ecshop专家

我的店是安装根目录,所以没有改,我不知道哪里错了?
<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]

回答:
看看你的主机是win还是linux 不同的系统对应不同的规则配置文件

.htaccess文件 或者web.config

我是linux 主机,美橙的空间商说都已经弄好只要你正确配置文件就可以。

服务器默认已经支持伪静态的,您只要上传正确的.htaccess文件到空间里就可以实现的。非常感谢您对我们工作的支持与合作,我们将竭诚为您提供最优质的服务!

这是原话,但我这边还是不行。配置也正确,我是根目录下的呀。
有没有人帮我,弄好我给钱都行,我QQ:496010769

[attach]106503[/attach][attach]106502[/attach]
[attach]106501[/attach]

根目录安装,应该没有错吧 然后配置应该没有错吧。

RewriteEngine On
RewriteBase /

QQ截图20130126141516.jpg QQ截图20130126141448.jpg
QQ截图20130126141435.jpg

这个问题很重要!

支持了就应该很容易设置的

可以尝试用编辑器编辑首先先把它转成 你要的语言例如UTF-8 在进行编辑 比较不会错乱
您也可以加入我们qq群 一起交流ID 376850994