ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Правило .htaccess для /2z-project


  • To: Nginx-ru@xxxxxxxxx
  • Subject: Правило .htaccess для /2z-project
  • From: "Помазан Богдан" <unnamed.net.ua@xxxxxxxxx>
  • Date: Wed, 30 Jan 2008 12:54:15 +0200
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=MQNy2WTB7RpTIsTIeLzjEMT2E497UwXoY5HkoJyPGbo=; b=SmjNIe1snl19xh9Txot2RNjnWTDg0vTHKBia9xIgdvgkSKLZWiyZjSuXOyOSpE8S2q5aTC5GNJGvWH20XvqMG6CbR+fsglov1uMTk2khjRahkjkGI+x97gTRHMG2oIbJ0q5ptlfCtOR4VsjTA4MyHJ+8ff2aGStxs/Gybpaz1Gg=
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=FqCbcgNli9WZ1kDWtyuH4YRtnRec/grPs55uJCZiguUUgQjkjWU1OKhT/97ihCfsvAyCkYQfj7XN4tbT9kP2WvrpZSH4g7sOGPy6lv+M7tNcUWeKNn2gQyOA7uSVFjMvZl+/+t40WAWQkUABo/NaGxuQ1jQ3206eJQkJqNd9aSY=

Есть такой новый CMS движок http://2z-project.ru

Там довольно большой .htaccess

Можно написать правило под него..

#
# Copyright (C) 2006-2007 2z project (http://2z-project.com)
# Name: .htaccess
# Description: mod_rewrite
# Author: 2z project team
#

DirectoryIndex index.php

<files .htaccess>
order allow,deny
deny from all
</files>

php_flag register_globals off
php_flag magic_quotes_gpc off
php_flag magic_quotes_runtime off
php_flag magic_quotes_sybase off

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [S=35]

# Editable links
RewriteRule ^category/([^/]*)(/?)+$ ?category=$1 [QSA,L]
RewriteRule ^category/([^/]*)/page/([0-9]+)(/?)+$ ?category=$1&cstart=$2 [QSA,L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{1,2})(/?)+$
?year=$1&month=$2&day=$3 [QSA,L]
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{1,2})/page/([0-9]+)(/?)+$
?year=$1&month=$2&day=$3&cstart=$4 [QSA,L]
RewriteRule ^([0-9]{4})/(/?)+$ ?year=$1 [QSA,L]
RewriteRule ^([0-9]{4})/page/([0-9]+)(/?)+$ ?year=$1&cstart=$2 [QSA,L]
RewriteRule ^([0-9]{4})/([0-9]{2})(/?)+$ ?year=$1&month=$2 [QSA,L]
RewriteRule ^([0-9]{4})/([0-9]{2})/page/([0-9]+)(/?)+$
?year=$1&month=$2&cstart=$3 [QSA,L]
RewriteRule ^users/([^/]*)(/?)+$ ?action=users&user=$1 [QSA,L]
RewriteRule ^page(/?)+$ ?cstart=0 [QSA,L]
RewriteRule ^page/([0-9]+)(/?)+$ ?cstart=$1 [QSA,L]
RewriteRule ^addnews.(htm|html)(/?)+$ ?action=addnews [QSA,L]
RewriteRule ^profile.(htm|html)(/?)+$ ?action=profile [QSA,L]
RewriteRule ^registration.(htm|html)(/?)+$ ?action=registration [QSA,L]
RewriteRule ^activation.(htm|html)(/?)+$ ?action=activation [QSA,L]
RewriteRule ^activation/([0-9]{1,7})/([^/]*)(/?)+$
?action=activation&userid=$1&code=$2 [QSA,L]
RewriteRule ^lostpassword.(htm|html)(/?)+$ ?action=lostpassword [QSA,L]
RewriteRule ^(feed|rss|rss2).xml(/?)+$ 2z/includes/rss.php [QSA,L]
RewriteRule ^category/([^/]*)/(feed|rss|rss2).xml(/?)+$
2z/includes/rss.php?category=$1 [QSA,L]
RewriteRule ^(.*).html(/?)+$ ?action=static&altname=$1 [QSA,L]
RewriteRule ^plugin/([^/]*)(/?)+$ ?action=plugin&plugin=$1 [QSA,L]
RewriteRule ^category/([^/]*)/(.*).(html|htm)(/?)+$
?category=$1&altname=$2 [QSA,L]
RewriteRule ^category/([^/]*)/(.*)/([0-9]+)(/?)+$
?category=$1&altname=$2&page=$3 [QSA,L]
RewriteRule ^category/([^/]*)/(.*).print(/?)+$
2z/includes/print.php?category=$1&altname=$2 [QSA,L]

-- 
Помазан Богдан Юрьевич.
IT отдел СК "ПМСК"
ICQ: 149-134-767
тел: 8 (063) 180-25-05


 




Copyright © Lexa Software, 1996-2009.