summaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-09-11 19:38:23 +0000
committerChristian Fowler <spider@viovio.com>2007-09-11 19:38:23 +0000
commit77dafa62f020de7bfd2c451cfd41a9ef3a161b92 (patch)
tree38d4e9785ba41266f4438c515accd9eb394eac76 /.htaccess
parent8f4a1448407964f13aade2c45e8850dbe4acff28 (diff)
downloadboards-77dafa62f020de7bfd2c451cfd41a9ef3a161b92.tar.gz
boards-77dafa62f020de7bfd2c451cfd41a9ef3a161b92.tar.bz2
boards-77dafa62f020de7bfd2c451cfd41a9ef3a161b92.zip
add phpbb rewrites
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess28
1 files changed, 25 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index b376ced..71d8458 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,9 +1,31 @@
<IfModule mod_rewrite.c>
RewriteEngine on
- RewriteCond %{SCRIPT_FILENAME} -f [OR]
- RewriteCond %{SCRIPT_FILENAME}/index.php -f
- RewriteRule ^(.*)$ - [L]
+# 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]
RewriteRule ^board/\d+.*$ index.php?b=$1 [L,QSA]
RewriteRule ^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>