FreeHost.com.UA
Августа 17, 2018, 04:47:49 am *
Добро пожаловать, Гость. Пожалуйста, войдите или зарегистрируйтесь.

Войти
Новости: Распродажа серверов http://freehost.com.ua/forum/index.php?topic=2093.0
 
   Начало   Помощь Поиск Войти Регистрация  
Страниц: [1]
  Печать  
Автор Тема: Настройка PHP для Joker board 2  (Прочитано 11831 раз)
Влад
Newbie
*

Karma: 0
Сообщений: 29


Просмотр профиля
« : Августа 06, 2010, 05:27:06 pm »

Убрал из htaccess запрещенные на хостинге директивы (типа: flag, options)
А, какие настройки PHP сделать в панели чтоб заработали оставшиеся, не запрещенные, указанные ниже. 

RewriteEngine on
RewriteBase //

RewriteRule ^robots/?$ srobots.php
RewriteRule ^robots/page/([0-9]+)/?$ srobots.php?page=$1

RewriteRule images/code.gif antispam.php
RewriteRule ^a/?$ sadmin.php
RewriteRule ^admin/([A-Za-z_]+).php$ /error.php
RewriteRule ^inc/([A-Za-z_]+).php$ /error.php

RewriteRule ^edit/([0-9]+)/?$ sedit.php?id_mess=$1
RewriteRule ^edit/([0-9]+)/del_image/([0-9]+)/?$ sedit.php?id_mess=$1&op=del_image&id_photo=$2
RewriteRule ^edit/([0-9]+)/del_all_image/?$ sedit.php?id_mess=$1&op=del_all_image
RewriteRule ^pass_to_mail/([0-9]+)/?$ sedit.php?id_mess=$1&actions=pass_to_mail

RewriteRule board/core/smsonline.php board/core/sms/smsonline.php
RewriteRule ^note/?$ snote.php
RewriteRule ^add_comments/([0-9]+)/?$ sadd_comments.php?id_mess=$1

RewriteRule ^url/([0-9]+)/?$ sredirect.php?id_mess=$1
RewriteRule ^news/?$ snews.php
RewriteRule ^news/page/([0-9]+)/?$ snews.php?page=$1
RewriteRule ^news/([a-zA-Z0-9_]+)/?$ snews.php?id_news=$1

RewriteRule ^rss/?$ srss.php
RewriteRule ^rss/all/?$ srss.php?action=all
RewriteRule ^rss/([0-9]+)/?$ srss.php?id_cat=$1
RewriteRule ^sitemap/?$ ssitemap.php
RewriteRule ^search/?$ ssearch.php
RewriteRule ^pages/([0-9]+)/?$ spages.php?id_page=$1
RewriteRule ^query/?$ squery.php
RewriteRule ^advertisement/nesting/([0-9]+)/kind/([0-9]+)/sendmail_to_autor/?$ sboard.php?id_cat=$1&id_mess=$2&invitation=yes
RewriteRule ^contacts/?$ scontacts.php

RewriteRule ^add/?$ saddboardform.php
RewriteRule ^all_cat/?$ sboard.php?op=all_cat
RewriteRule ^advertisement/?$ sboard.php
RewriteRule ^([0-9]+)/print/?$ sboard.php?id_mess=$1&act=print

RewriteRule ^advertisement/nesting/([0-9]+)/?$ sboard.php?id_cat=$1
RewriteRule ^advertisement/nesting/([0-9]+)/page/([0-9]+)/?$ sboard.php?id_cat=$1&page=$2
RewriteRule ^advertisement/nesting/([0-9]+)/kind/([0-9]+)/?$ sboard.php?id_cat=$1&id_mess=$2
RewriteRule ^advertisement/nesting/([0-9]+)/sort/([a-zA-Z0-9_]+)/?$             sboard.php?id_cat=$1&sort=$2
RewriteRule ^advertisement/nesting/([0-9]+)/sort/([a-zA-Z0-9_]+)/page/([0-9]+)/?$   sboard.php?id_cat=$1&sort=$2&page=$3
RewriteRule ^advertisement/city/([a-zA-Z0-9_]+)/nesting/([0-9]+)/kind/([0-9]+)/?$ sboard.php?city=$1&id_cat=$2&id_mess=$3
RewriteRule ^advertisement/city/([a-zA-Z0-9_]+)/?$ sboard.php?city=$1
RewriteRule ^advertisement/city/([a-zA-Z0-9_]+)/nesting/([0-9]+)/sort/([a-zA-Z0-9_]+)/?$ sboard.php?city=$1&id_cat=$2&sort=$3
RewriteRule ^advertisement/city/([a-zA-Z0-9_]+)/nesting/([0-9]+)/sort/([a-zA-Z0-9_]+)/page/([0-9]+)/?$   sboard.php?city=$1&id_cat=$2&sort=$3&page=$4

RewriteRule ^admin/abuse/?$                               sadmin.php?action=abuse
RewriteRule ^admin/money_stats/?$                               sadmin.php?action=money_stats
RewriteRule ^admin/comments/?$                               sadmin.php?action=comments
RewriteRule ^admin/comments/non_checked/?$                      sadmin.php?action=comments&op=non_checked
RewriteRule ^admin/comments/([0-9]+)/?$                      sadmin.php?action=comments&id_mess=$1

RewriteRule ^admin/ad_checked/?$                               sadmin.php?action=ad_checked
RewriteRule ^admin/ad/([0-9]+)/?$                               sadmin.php?action=ad&id_cat=$1
RewriteRule ^admin/ad/([0-9]+)/page/([0-9]+)/?$                   sadmin.php?action=ad&id_cat=$1&page=$2
RewriteRule ^admin/ad/add_mess/?$                               sadmin.php?action=ad&op=add_mess
RewriteRule ^admin/ad/([0-9]+)/([0-9]+)/delete/?$                   sadmin.php?action=ad&id_cat=$1&id_mess=$2&op=delete
RewriteRule ^admin/ad/([0-9]+)/([0-9]+)/edit/?$                   sadmin.php?action=ad&id_cat=$1&id_mess=$2&op=edit
RewriteRule ^admin/ad/([0-9]+)/([0-9]+)/del_image/([0-9]+)/?$    sadmin.php?action=ad&id_cat=$1&id_mess=$2&id_photo=$3&op=del_image
RewriteRule ^admin/ad/([0-9]+)/del_all_image/?$                   sadmin.php?action=ad&id_mess=$1&op=del_all_image
RewriteRule ^admin/ad/([0-9]+)/sort/([a-zA-Z0-9_]+)/?$                sadmin.php?action=ad&id_cat=$1&sort=$2
RewriteRule ^admin/ad/([0-9]+)/sort/([a-zA-Z0-9_]+)/page/([0-9]+)/?$   sadmin.php?action=ad&id_cat=$1&sort=$2&page=$3
RewriteRule ^admin/city/?$ sadmin.php?action=city
RewriteRule ^admin/city/on/?$ sadmin.php?action=city&op=on
RewriteRule ^admin/city/add/?$ sadmin.php?action=city&op=add
RewriteRule ^admin/category/?$ sadmin.php?action=category
RewriteRule ^admin/category/add_category/?$ sadmin.php?action=category&op=add_category

RewriteRule ^admin/category/edit_category/([0-9]+)/?$ sadmin.php?action=category&op=edit_category&id_cat=$1
RewriteRule ^admin/category/delete_image/([0-9]+)/?$ sadmin.php?action=category&op=delete_image&id_cat=$1
RewriteRule ^admin/category/delete_category/([0-9]+)/?$ sadmin.php?action=category&op=delete_category&id_cat=$1
RewriteRule ^admin/setting/?$ sadmin.php?action=setting
RewriteRule ^admin/logout/?$ sadmin.php?action=logout
RewriteRule ^admin/profile/?$ sadmin.php?action=profile
RewriteRule ^admin/profile/edit/?$ sadmin.php?action=profile&op=edit

RewriteRule ^admin/content/?$ sadmin.php?action=content
RewriteRule ^admin/content/add/?$ sadmin.php?action=content&op=add
RewriteRule ^admin/content/([0-9]+)/edit/?$ sadmin.php?action=content&op=edit&id_page=$1
RewriteRule ^admin/content/([0-9]+)/drop/?$ sadmin.php?action=content&op=drop&id_page=$1

RewriteRule ^admin/news/?$ sadmin.php?action=news
RewriteRule ^admin/news/page/([0-9]+)/?$ sadmin.php?action=news&page=$1
RewriteRule ^admin/news/add/?$ sadmin.php?action=news&op=add
RewriteRule ^admin/news/([0-9]+)/drop/?$ sadmin.php?action=news&op=drop&id_news=$1
RewriteRule ^admin/news/([0-9]+)/edit/?$ sadmin.php?action=news&op=edit&id_news=$1
Записан
Страниц: [1]
  Печать  
 
Перейти в:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2011, Simple Machines Valid XHTML 1.0! Valid CSS!