destoon-Apache conf文件配置规则
Posted 小丫的小破孩
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了destoon-Apache conf文件配置规则相关的知识,希望对你有一定的参考价值。
# Destoon B2B Rewrite Rules ErrorDocument 404 /404.php RewriteEngine On RewriteBase / RewriteRule ^(.*).(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404.php RewriteRule ^(.*)/(admin|cache|editor|file|include|lang|module|skin|template)/(.*).php(.*)$ /404.php RewriteRule ^(.*)-htm-(.*)$ $1.php?$2 RewriteRule ^(.*)/show-([0-9]+)([-])?([0-9]+)?.html$ $1/show.php?itemid=$2&page=$4 RewriteRule ^(.*)/list-([0-9]+)([-])?([0-9]+)?.html$ $1/list.php?catid=$2&page=$4 RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show.php?itemid=$2&page=$3 RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list.php?catid=$2&page=$3 RewriteRule ^(.*)/([A-za-z0-9_-]+)-c([0-9]+)-([0-9]+).html$ $1/list.php?catid=$3&page=$4 RewriteRule ^(.*)/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ $1/index.php?moduleid=$2&catid=$3&itemid=$4&page=$5 RewriteRule ^(.*)/([a-z]+)/(.*).shtml$ $1/$2/index.php?rewrite=$3 RewriteRule ^(.*)/com/([a-z0-9_-]+)/([a-z]+)/(.*).html$ $1/index.php?homepage=$2&file=$3&rewrite=$4 RewriteRule ^(.*)/com/([a-z0-9_-]+)/([a-z]+)([/])?$ $1/index.php?homepage=$2&file=$3 RewriteRule ^(.*)/com/([a-z0-9_-]+)([/])?$ $1/index.php?homepage=$2
以上是关于destoon-Apache conf文件配置规则的主要内容,如果未能解决你的问题,请参考以下文章
ThinkPHP 利用.htaccess文件的 Rewrite 规则隐藏URL中的 index.php
问答项目---金币经验奖励规则及网站配置写入config文件
react router browserHistory,nginx服务端应该怎么配置