Categories


Tags


apache下常用程序的伪静态规则列表(包括wordpress、thinkphp)

#wordpress

<ifModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

#ThinkPhp

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

</IfModule>

#dzx3.x

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topic=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1

</IfModule>

#dzx2.x

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^topic-(.+)\.html$ portal.php?mod=topic&topicid=$1&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^article-([0-9]+)-([0-9]+)\.html$ portal.php?mod=view&aid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^forum-(\w+)-([0-9]+)\.html$ forum.php?mod=forumdisplay&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ forum.php?mod=viewthread&tid=$1&extra=page\%3D$3&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^group-([0-9]+)-([0-9]+)\.html$ forum.php?mod=group&fid=$1&page=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^space-(username|uid)-(.+)\.html$ home.php?mod=space&$1=$2&%1 [NU]

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^blog-([0-9]+)-([0-9]+)\.html$ home.php?mod=space&uid=$1&do=blog&id=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^archiver/(fid|tid)-([0-9]+)\.html$ archiver/index.php?action=$1&value=$2&%1

RewriteCond %{QUERY_STRING} ^(.*)$

RewriteRule ^([a-z]+[a-z0-9_]*)-([a-z0-9_\-]+)\.html$ plugin.php?id=$1:$2&%1

#shopex4.8

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} \.(html|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm|xml)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(?!shopadmin)(.*)$ index.php?$1 [L,QSA]

</IfModule>

来源:西部数码


Public @ 2014-09-18 16:11:03

独立主机/VPS用户最新shopex安装后报错的解决方法

如果你是一个独立主机/VPS用户,最近在安装Shopex时出现了错误,可以尝试以下解决方法: 1. 检查服务器环境是否满足Shopex的要求。 Shopex需要的 PHP 版本为 5.6 至 7.2,并且需要安装 MySQL 或 MariaDB 数据库。确保你的服务器已经安装了这些必要的组件,并且版本符合要求。 2. 检查文件权限是否正确。 在安装Shopex时,需要设置文件夹和文件的权限

Public @ 2023-03-26 10:50:24

关于网站、服务器受攻击问题的相关说明

网站和服务器受攻击是指恶意个体或组织通过各种手段试图破坏、入侵、干扰网站或服务器的正常运行。 攻击方式通常包括以下几种: 1. 分布式拒绝服务攻击(DDoS):攻击者通过利用多个计算机或设备发起大规模请求,使服务器过载,导致网站无法正常响应其他用户的请求。 2. SQL注入攻击:攻击者通过在网站的输入字段中注入恶意SQL代码,从而操控数据库,获取敏感数据或者破坏数据。 3. 代码注入攻击:

Public @ 2023-07-28 08:00:41

IIS 6.0 伪静态的配置方法

1. 打开 IIS,选中网站,右键选择“属性”; 2. 在“主页”选项卡中,点击“配置”按钮; 3. 在“映射”选项卡中,点击“添加”按钮; 4. 在“可执行文件”栏目中输入“%windir%\Microsoft.NET\Framework\v2.0xxxx\aspnet_isapi.dll”(注意“v2.0xxxx” 是 .NET Framework 的版本号); 5. 在“限制执行(仅适用于

Public @ 2023-06-25 07:00:13

windows+iis常规伪静态设置教程(适用虚拟主机)

windows+iis环境下实现伪静态比较简单,默认情况下服务器支持,不需要特殊设置。规则则是由程序开发者提供的web.config,放到网站根目录下即可实现,网站后台直接开启伪静态化即可。另我司提供一些常用系统的规则,shopex discuz2.0 discuz2.5 discuz3.x 淘宝客 ecshop phpwind1.进入主机面板,网站基本功能中点击伪静态设置图片.png2.下拉框中

Public @ 2009-10-03 16:11:03

更多您感兴趣的搜索

0.462326s