discuz X 伪静态规则-IIS -Nginx-Apache

2010/05/07 7:16 上午  |  分类:discuz, nginx

康胜刚刚发布了discuz x beta 版本,在管理后台,全局 » 优化设置 » 搜索引擎优化 选中url静态化的选项即可,相关规则文件官方已经出示例,摘录如下:

IIS-Isapi

[ISAPI_Rewrite]
 
[ISAPI_Rewrite]
 
# 3600 = 1 hour
CacheClockRate 3600
 
RepeatLimit 32
 
# Protect httpd.ini and httpd.parse.errors files
# from accessing through HTTP
RewriteRule ^(.*)/topic-(.+)\.html\?*(.*)$ $1/portal\.php\?mod=topic&topic=$2&$3
RewriteRule ^(.*)/article-([0-9]+)\.html\?*(.*)$ $1/portal\.php\?mod=article&articleid=$2&$3
RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$4
RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=group&fid=$2&page=$3&$4
RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/home\.php\?mod=space&$2=$3&$4
RewriteRule ^(.*)/([a-z]+)-(.+)\.html\?*(.*)$ $1/$2\.php\?rewrite=$3&$4

全文阅读 »

uchome rewrite for nginx

2010/03/27 6:36 下午  |  分类:discuz, nginx

ngnix下uchome的伪静态规则,可以和discuz的规则合用

1
2
3
4
5
location / {
     rewrite ^(.*)/(space|network)\-(.+)\.html$ $1/$2.php?rewrite=$3 last;
     rewrite ^(.*)/(space|network)\.html$ $1/$2.php last;
     rewrite ^(.*)/([0-9]+)$ $1/space.php?uid=$2 last;
        }

discuz rewrite for nginx

2010/03/27 6:28 下午  |  分类:discuz, nginx

discuz 在nginx下的伪静态规则! (ps:discuz的伪静态规则 ,一般情况下是通用的,不必区分是discuz6还是7)

location / {
      rewrite ^(.*)/archiver/((fid|tid)-[\w\-]+\.html)$ $1/archiver/index.php?$2 last;
      rewrite ^(.*)/forum-([0-9]+)-([0-9]+)\.html$ $1/forumdisplay.php?fid=$2&page=$3 last;
      rewrite ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1/viewthread.php?tid=$2&extra=page%3D$4&page=$3 last;
      rewrite ^(.*)/profile-(username|uid)-(.+)\.html$ $1/viewpro.php?$2=$3 last;
      rewrite ^(.*)/space-(username|uid)-(.+)\.html$ $1/space.php?$2=$3 last;
      rewrite ^(.*)/tag-(.+)\.html$ $1/tag.php?name=$2 last;
        }

Uchome的在这里

shopex 4.84伪静态设置方法For win(转)

2009/08/05 9:18 上午  |  分类:shopex

之前介绍了一篇关于shopex4.84的伪静态设置方法,不少朋友觉得不够详细,正好好友诡谲写有一篇详细的介绍,就不再重复,直接转过来。

============================以下为原文============================

由于Shopex官方对win系统支持不够,而且直接在后台开启伪静态会跳出提示,告诉你的服务器不是Apache.不能开启.但是我们依然可以绕过这个限制,需要修改一个文件,该文件位于/core/admin/controller/system/目录下,我们需要修改ctl.setting.php这个文件.但是大家下载打开却发现很多乱码,根本不知道如何下手.其实这是经过zend加密过的源码,我们需要对其进行解密.例如Dezender.这个软件可以直接将经过zend加密过的源码还原成原来的文件.如下图所示.
全文阅读 »

wordpress FOR IIS7 URL Rewrite

2009/07/13 6:54 上午  |  分类:IIS7-rewrite, wordpress

wordpress 官方已经内置了 IIS7 URL Rewrite 的支持,但对于中文用户来说,官方内置的伪静态规则不能完好的支持中文tag的问题。虽然可以更改系统文件来解决,但比较麻烦,而且不方便,所以一直没介绍过。现在帖出一个自用的的规则,可以解决wordpress的中文tag的问题。
全文阅读 »

shopex 4.8 for iis 7 伪静态

2009/06/22 7:39 上午  |  分类:IIS7-rewrite, shopex

shopex 4.84 用在iis 7 url rewrite module 下的规则文件

将下列代码加入到web目录下的web.config文件的<system.webServer>之后即可。

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
        <rewrite>
            <rules>
                <rule name="disableDownloadThemeHtml">
                    <match url="^themes/.*\.(html|xml)$" ignoreCase="false" />
                    <action type="CustomResponse" url="/" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
                </rule>
                <rule name="urlRewrite">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">
                        <add input="{REQUEST_FILENAME}" pattern="\.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
                    </conditions>
                    <action type="Rewrite" url="index.php?{R:1}" appendQueryString="false" />
                </rule>
            </rules>
        </rewrite>

uchome独立使用的伪静态规则

2009/05/29 7:04 上午  |  分类:discuz

最近有朋友在空间主目录下只装了uchome,问到要如何设置伪静态,其它在之前发过的uchome和dz共用的规则文件,稍改动一下就可以使用,不会改的直接下载下面这个规则文件使用吧,如果你的uchome不是安装在子目录的话。

Download uchome Version 1.5

最近几天正在测试IIS7  URL Rewrite Module 的一些伪静态规则,从RuslanY的blog上得知,wordpress2.8将内建对IIS7 URL Rewrite Module的支持,检测到环境包含IIS7 URL Rewrite Module1.1以后,在wp 2.8的后台设置=》固定链接中,选择好要使用的固定链接形式以后点击保存,将自动将相应的伪静态规则添加到web.config文件中,即可实现wordprss的固定链接。

如图所示 
全文阅读 »

ECshop 2.6.2 伪静态规则

2009/05/17 12:49 下午  |  分类:shopex

ECSHOP 通用电子商务平台

———————————————————————-

ECSHOP是一款开源免费的通用电子商务平台构建软件,使用她您可以非常方便的开一个网上商店,在网上开展自己的生意。

将下面压缩包里的文件下载解压以后,上传到网站根目录,IIS主机使用httpd.ini文件 ,apache主机使用.htaccess文件

后台设置开户 伪静态 功能:在后台 商店设置 > 基本设置  >  URL重写 > 选上 简单重写

设置好后清缓存,查看网店; 即可生效了。非常简单;

全文阅读 »

shopex 4.84伪静态(以及IIS下解决办法)

2009/04/16 10:23 上午  |  分类:shopex

Apache 下配置方法

进入后台 =>营销推广=>SEO设置=>商品页面启用伪静态

shopex484

下载压缩包,将其中的.htaccess文件放到网站根目录即可。

全文阅读 »

Pages: 1 2 Next