blob: 94957e0c37596f6babdcaa3543c6fe2d56dbd365 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
<IfModule mod_rewrite.c>
RewriteEngine on
# Uncomment this if mod_rewrites are not working for you. some hosting services have cranky mod_rewrite
# RewriteBase /boards/
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME}/index.php -f
RewriteRule ^(.*)$ - [L]
# Make sure URLs like this work: ...topic/123&warning[1345]=show
RewriteRule ^board/(\d+.*)$ index.php?b=$1 [L,QSA]
RewriteRule ^topic/(\d+.*)$ index.php?t=$1 [L,QSA]
RewriteRule ^view/board/(\d+.*)$ index.php?b=$1 [L,QSA]
RewriteRule ^view/topic/(\d+.*)$ index.php?t=$1 [L,QSA]
# fake out phpBB user profile page
RewriteCond %{REQUEST_URI} profile.php
RewriteCond %{QUERY_STRING} .*mode=viewprofile.*u=([0-9]*)
RewriteRule .* /users/index.php?fHomepage=%1 [R,env=VV_THEME:people,QSA]
# old phpBB posts
RewriteCond %{REQUEST_URI} viewtopic.php
RewriteCond %{QUERY_STRING} .*p=([0-9]*).*
RewriteRule .* /forums/index.php?migrate_post_id=%1 [R]
# old phpBB topics
RewriteCond %{REQUEST_URI} viewtopic.php
RewriteCond %{QUERY_STRING} .*t=([0-9]*).*
RewriteRule .* /forums/index.php?migrate_topic_id=%1 [R]
# old phpBB board
RewriteCond %{REQUEST_URI} viewforum.php
RewriteCond %{QUERY_STRING} .*f=([0-9]*).*
RewriteRule .* /forums/index.php?migrate_board_id=%1 [R]
</IfModule>
|