finecms需要什么样的服务器环境?伪静态的怎么设置?

finecms需要什么样的服务器环境?伪静态的怎么设置?,第1张

您好,FineCMS v2(简称v2)是一款开源的跨平台网站内容管理系统,以“实用+好用”为基本产品理念,提供从内容发布、组织、传播、互动和数据挖掘的网站一体化解决方 案。系统基于CodeIgniter框架,具有良好扩展性和管理性,可以帮助您在各种操作系统与运行环境中搭建各种网站模型而不需要对复杂繁琐的编程语言 有太多的专业知识,系统采用UTF-8编码,采取(语言-代码-程序)两两分离的技术模式,全面使用了模板包与语言包结构,为用户的修改提供方便,网站内 容的每一个角落都可以在后台予以管理,是一套非常适合用做系统建站或者进行二次开发的程序核心,史上灵活性最强的CMS系统。

静态应该怎么设置:

怎么设置伪静态是许多站长最关心的一个问题了,其实要将网站设置成伪静态需要一些必备条件:

1、网站程序支持设置伪静态。

2、web服务器支持设置伪静态。

3、必须要有伪静态规则文件

需要服务器支持才可以设置伪静态。

网站设置成伪静态需要一些必备条件:

1、网站程序支持设置伪静态。

2、web服务器支持设置伪静态。

3、必须要有伪静态规则文件。

这里的WEB服务器不是指的硬件上的区别,而是软件上的,不同的WEB服务器的程序有不同的伪静态模块或者插件,介绍几款主流的WEB服务器以及相应的伪静态文件。

比如IIS60以前的伪静态插件叫ISAPI_rewrite,而且不同的插件版本对伪静态文件的支持也有所区别,ISAPI_rewrite3以前的版本只支持httpdini伪静态文件,从ISAPI_rewrite3开始支持htaccess伪静态文件。

从IIS70开始伪静态的设置可以使用URL Rewrite Module插件也可以不使用插件进行设置,如果使用URL Rewrite Module这个插件就可以直接支持htaccess的伪静态文件,如果不使用插件设置步骤比较复杂,所使用的伪静态文件就是webconfig。

利用htaccess文件对PHP网站进行伪静态处理要考虑两点:

一服务器支持伪静态,比如Apache要开启mod_rewrite模块支持

二利用htaccess完成伪静态需要根据不同的网站系统进行不同的设置,以下是一些常见系统的htaccess设定:

01wordpress:

# BEGIN WordPress

<IfModule mod_rewritec>

RewriteEngine On

RewriteBase /

RewriteRule ^indexphp$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule /indexphp [L]

</IfModule>

02Phpwind

RewriteEngine On

RewriteBase /

RewriteRule ^()-htm-()$ $1php$2

RewriteRule ^()simple/([a-z0-9\_]+\html)$ $1/simple/indexphp$2

03Discuz

RewriteEngine On

# Rewrite 系统规则请勿修改

RewriteRule ^archiver/((fid|tid)-[0-9]+\html)$ archiver/indexphp$1

RewriteRule ^forum-([0-9]+)-([0-9]+)\html$ forumdisplayphpfid=$1&page=$2

RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\html$ viewthreadphptid=$1&extra=page\%3D$3&page=$2

RewriteRule ^space-(username|uid)-(+)\html$ spacephp$1=$2

RewriteRule ^tag-(+)\html$ tagphpname=$1

04ecshop

RewriteEngine On

# direct one-word access

RewriteRule ^index\html$ index\php [L]

RewriteRule ^category$ index\php [L]

# access any object by its numeric identifier

RewriteRule ^feed-c([0-9]+)\xml$ feed\php\cat=$1 [L]

RewriteRule ^feed-b([0-9]+)\xml$ feed\php\brand=$1 [L]

RewriteRule ^feed\xml$ feed\php [L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-])-([0-9]+)-(+)-([a-zA-Z]+)()\html$ category\php\id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5&page=$6&sort=$7&order=$8 [QSA,L]

RewriteRule ^category-([0-9]+)-b([0-9]+)-min([0-9]+)-max([0-9]+)-attr([^-])()\html$ category\php\id=$1&brand=$2&price_min=$3&price_max=$4&filter_attr=$5 [QSA,L]

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]

RewriteRule ^auction-([0-9]+)\html$ auction\php\act=view&id=$1 [QSA,L]

05phpcms

RewriteEngine On

RewriteRule ^()content-([0-9]+)-([0-9]+)-([0-9]+)\html$ $1/index\php\m=content&c=index&a=show&catid=$2&id=

$3&page=$4

RewriteRule ^()show-([0-9]+)-([0-9]+)-([0-9]+)html$ $1/index\php\m=content&c=index&a=show&catid=$2&id=

$3&page=$4

RewriteRule ^()list-([0-9]+)-([0-9]+)html$ $1/index\php\m=content&c=index&a=lists&catid=$2&page=$3

DABAN RP主题是一个优秀的主题,极致后台体验,无插件,集成会员系统
网站模板库 » finecms需要什么样的服务器环境?伪静态的怎么设置?

0条评论

发表评论

提供最优质的资源集合

立即查看 了解详情