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

原文地址:https://www.cnblogs.com/lx0715/p/9984467.html

时间: 2024-08-30 01:36:50

destoon-Apache conf文件配置规则的相关文章

apache静态文件配置

开发环境配置 需要下面几个步骤 1. 在app目录下创建static目录,将静态文件和相关文件夹放到此目录下,如your_app/static/img等 2. 确保settings.py中的INSTALLED_APPS中包含django.contrib.staticfiles 3. 设置settings.py中的STATIC_URL的值为“/static/” 4. 在模版中使用{{ STATIC_URL }}作为静态文件路径前缀.比如纯在图片文件your_app/static/img/logo.

虚拟主机ip配置,nginx.conf文件配置及日志文件切割

今天粗略整理了一下虚拟主机配置,nginx.conf文件的配置,及日志文件的切割,记录如下: nginx虚拟主机配置:1.IP地址配置,2.绑定ip地址和虚拟主机详情:1.ip地址的配置:ifconfig eth0 192.168.0.15 netmast 255.255.255.0虚拟ip及对应server块基本配置:ifconfig eth0:1 192.168.0.180 broadcast 192.168.0.255 netmask 255.255.255.0ifconfig eth0:

Beego Conf 文件配置解析

Beego 默认系统配置为conf文件夹下的app.conf文件:那么app.conf里面的具体配置属性都是什么意思,接下来一一的进行解释: beege程序默认app.conf 在beego程序中读取app.conf中的配置内容可以使用:beego.AppConfig.String("appname") app.conf系统配置内容 AppName应用名称,默认是 beego.通过 bee new 创建的是创建的项目名.beego.BConfig.AppName = "bee

Apache的配置httpd.conf文件配置

(1) 基本配置: ServerRoot "/mnt/software/apache2" #你的apache软件安装的位置.其它指定的目录如果没有指定绝对路径,则目录是相对于该目录. PidFile logs/httpd.pid #第一个httpd进程(所有其他进程的父进程)的进程号文件位置. Listen 80 #服务器监听的端口号. ServerName www.clusting.com:80 #主站点名称(网站的主机名). ServerAdmin [email protected

apache虚拟主机防止php网页木马vhost.conf文件配置

<VirtualHost *> DocumentRoot "/www/www.abc.com" ServerName www.abc.com ServerAlias abc.com www.abc.cn abc.cn CustomLog "| /usr/sbin/rotatelogs /weblogs/www.abc.com/%Y_%m_%d_access_log 86400 480" common php_admin_value open_basedi

redis学习(二)redis.conf文件配置

取自: https://www.cnblogs.com/pqchao/p/6558688.html 为了更好的使用redis,我们需要详细的了解redis配置文件及相关参数作用. bind 127.0.0.1 bind 192.168.1.100 绑定redis服务器网卡IP,默认为127.0.0.1,即本地回环地址.这样的话,访问redis服务只能通过本机的客户端连接,而无法通过远程连接.如果bind选项为空的话,那会接受所有来自于可用网络接口的连接.如上配置,绑定一个127.0.0.1的本机

redis.conf文件配置

最重要三个配置 1. bind 127.0.0.1 需要注释掉这一行,使别的主机可以访问 2. daemonize no 需要改为yes,使其后台运行 3. requirepass foobared 为redis配置密码 主要配置说明 配置项 说明 daemonize no Redis 默认不是以守护进程的方式运行,可以通过该配置项修改,使用 yes 启用守护进程(Windows 不支持守护线程的配置为 no ) pidfile /var/run/redis.pid 当 Redis 以守护进程方

nginx使用手册--nginx.conf文件配置详解

#运行用户 user nobody; #启动进程,通常设置成和cpu的数量相等 worker_processes 1; #全局错误日志及PID文件 #error_log logs/error.log; #error_log logs/error.log notice; #error_log logs/error.log info; #pid logs/nginx.pid; #工作模式及连接数上限 events { #epoll是多路复用IO(I/O Multiplexing)中的一种方式, #仅

Apache2.4.9 httpd-vhosts.conf文件配置

<VirtualHost  *:80> ServerName    localhost documentRoot 'D:/wamp/bin/apache/apache2.4.9/htdocs/' <Directory "D:/wamp/bin/apache/apache2.4.9/htdocs/"> AllowOverride none Require all denied Options Indexes FollowSymLinks AllowOverride