对ecshop进行了定制,发现url rewrite不能用了:(
<FilesMatch "\.(bak|inc|lib|sh|tpl|lbi|dwt)$">
order deny,allow
deny from all
</FilesMatch>
RewriteEngine On
# direct one-word access
RewriteRule ^category$ index.php [L]
RewriteRule ^feed.xml$ feed.php [L]
# access any object by its numeric identifier
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 [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]+)\.html brand.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]+)(.*)\.html brand.php?id=$1 [QSA,L]
RewriteRule ^tag-(.*)\.html search.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]
估计是htacess的问题,上面是我copy出来的,前几天还可以生成html页面,但是不能访问,现在是只要改htacess.txt-》.htacess系统就会提示sever internal error(服务器内部错误)