Файл: forum/.htaccess
Строк: 55
DirectoryIndex index.php
#Turn on Rewrite engine
RewriteEngine
on
#Main page
RewriteCond %{REQUEST_URI} ^/index.htm*
RewriteRule
^(.*) /index.php [L]
# View Category
RewriteCond %{REQUEST_URI}
^/vcat_([0-9]*).htm*
RewriteRule ^(.*) /index.php?c=%1 [L]
# View
Forum
RewriteCond %{REQUEST_URI} ^/forum_([0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1 [L]
RewriteCond %{REQUEST_URI}
^/forum_([0-9]*)_([0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&start=%2 [L]
RewriteCond %{REQUEST_URI}
^/pforum_([0-9]*)_([0-9]*)_([0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&topicdays=%2&start=%3 [L]
# View
Forum
RewriteCond %{REQUEST_URI}
^/mforum,([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&mark=%2 [L]
# View Topic -- after first
page
RewriteCond %{REQUEST_URI}
^/ltopic_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4 [L]
#
View Topic -- after first page
RewriteCond %{REQUEST_URI}
^/lhtopic_([0-9]*)_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9?]*).htm*
RewriteRule
^(.*)
/viewtopic.php?t=%1&start=%2&&postdays=%3&postorder=%4&highligth=%5
[L]
# View Topic -- normal
RewriteCond %{REQUEST_URI}
^/stopic_([0-9]*)_([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?p=%1\#%2
[L]
# View Topic -- normal
#RewriteCond %{REQUEST_URI}
^/htopic_([0-9]*)_([a-zA-Z0-9]*).htm*
#RewriteCond %{REQUEST_URI}
^/htopic_([0-9]*)_([^.]+).htm*
RewriteCond %{REQUEST_URI}
^/htopic_([0-9]*)_([^.]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&highlight=%2 [L]
# View Topic --
normal
RewriteCond %{REQUEST_URI}
^/vtopic_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&view=%2 [L]
# View Topic -- normal
RewriteCond
%{REQUEST_URI} ^/ptopic_([0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?p=%1\#%2 [L]
# View Topic -- normal
RewriteCond
%{REQUEST_URI} ^/topic_([0-9]*).htm*
RewriteRule ^(.*) /viewtopic.php?t=%1
[L]
RewriteCond %{REQUEST_URI} ^/topic_([0-9]*)_([0-9]*).htm*
RewriteRule
^(.*) /viewtopic.php?t=%1&start=%2 [L]
#vote result
RewriteCond
%{REQUEST_URI}
^/utopic_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule
^(.*) /viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4
[L]
#with session
#############
# View Forum
RewriteCond
%{REQUEST_URI} ^/forum_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&sid=%2 [L]
RewriteCond %{REQUEST_URI}
^/forum_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&start=%2&sid=%3 [L]
RewriteCond %{REQUEST_URI}
^/pforum_([0-9]*)_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&topicdays=%2&start=%3&sid=%4 [L]
# View
Forum
RewriteCond %{REQUEST_URI}
^/mforum_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewforum.php?f=%1&mark=%2&sid=%3 [L]
# View Topic -- after
first page
RewriteCond %{REQUEST_URI}
^/ltopic_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([0-9]*)_([a-zA-Z0-9?]*).htm*
RewriteRule
^(.*)
/viewtopic.php?t=%1&postdays=%2&postorder=%3&start=%4&sid=%5
[L]
# View Topic -- after first page
RewriteCond %{REQUEST_URI}
^/lhtopic_([0-9]*)_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9?]*)_([a-zA-Z0-9]*).htm*
RewriteRule
^(.*)
/viewtopic.php?t=%1&start=%2&&postdays=%3&postorder=%4&highligth=%5&sid=%6
[L]
# View Topic -- normal
RewriteCond %{REQUEST_URI}
^/stopic,([0-9]*)_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?p=%1&sid=%2\#%3 [L]
# View Topic --
normal
RewriteCond %{REQUEST_URI}
^/htopic_([0-9]*)_([^_]+)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&highlight=%2&sid=%3 [L]
# View Topic --
normal
RewriteCond %{REQUEST_URI}
^/vtopic_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&view=%2&sid=%3 [L]
# View Topic --
normal
RewriteCond %{REQUEST_URI}
^/ptopic_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?p=%1&sid=%2\#%3 [L]
# View Topic --
normal
RewriteCond %{REQUEST_URI}
^/topic_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&sid=%2 [L]
RewriteCond %{REQUEST_URI}
^/topic_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule ^(.*)
/viewtopic.php?t=%1&start=%2&sid=%3 [L]
#vote
result
RewriteCond %{REQUEST_URI}
^/utopic_([0-9]*)_([0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9]*)_([a-zA-Z0-9]*).htm*
RewriteRule
^(.*)
/viewtopic.php?t=%1&postdays=%2&postorder=%3&vote=%4&sid=%4
[L]