Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Настройка MyBB для использования на Lighttpd сервере
#1
Код:
url.rewrite = (
    "^/forum-([0-9]+)\.html(\?(.*)|)$" => "/forumdisplay.php?fid=$1&$3",
    "^/forum-([0-9]+)-page-([0-9]+)\.html(\?(.*)|)$" => "/forumdisplay.php?fid=$1&page=$2&$4",
    "^/thread-([0-9]+)\.html(\?(.*)|)$" => "/showthread.php?tid=$1&$3",
    "^/thread-([0-9]+)-page-([0-9]+)\.html(\?(.*)|)$" => "/showthread.php?tid=$1&page=$2&$4",
    "^/thread-([0-9]+)-lastpost\.html(\?(.*)|)$" => "/showthread.php?tid=$1&action=lastpost&$3",
    "^/thread-([0-9]+)-nextnewest\.html(\?(.*)|)$" => "/showthread.php?tid=$1&action=nextnewest&$3",
    "^/thread-([0-9]+)-nextoldest\.html(\?(.*)|)$" => "/showthread.php?tid=$1&action=nextoldest&$3",
    "^/thread-([0-9]+)-newpost\.html(\?(.*)|)$" => "/showthread.php?tid=$1&action=newpost&$3",
    "^/thread-([0-9]+)-post-([0-9]+)\.html(\?(.*)|)$" => "/showthread.php?tid=$1&pid=$2&$4",

    "^/post-([0-9]+)\.html(\?(.*)|)$" => "/showthread.php?pid=$1&$3",

    "^/announcement-([0-9]+)\.html(\?(.*)|)$" => "/announcements.php?aid=$1&$3",

    "^/user-([0-9]+)\.html(\?(.*)|)$" => "/member.php?action=profile&uid=$1&$3",

    "^/calendar-([0-9]+)\.html(\?(.*)|)$" => "/calendar.php?calendar=$1&$3",
    "^/calendar-([0-9]+)-year-([0-9]+)\.html(\?(.*)|)$" => "/calendar.php?action=yearview&calendar=$1&year=$2&$4",
    "^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html(\?(.*)|)$" => "/calendar.php?calendar=$1&year=$2&month=$3&$5",
    "^/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html(\?(.*)|)$" => "/calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4&$6",
    "^/calendar-([0-9]+)-week-(n?[0-9]+)\.html(\?(.*)|)$" => "/calendar.php?action=weekview&calendar=$1&week=$2&$4",

    "^/event-([0-9]+)\.html(\?(.*)|)$" => "/calendar.php?action=event&eid=$1&$3",
)
Ответ


Перейти к форуму:


Пользователи, просматривающие эту тему: 2 Гость(ей)