summaryrefslogtreecommitdiff
path: root/.htaccess_phpbb
diff options
context:
space:
mode:
authorChristian Fowler <spider@viovio.com>2007-03-07 21:02:28 +0000
committerChristian Fowler <spider@viovio.com>2007-03-07 21:02:28 +0000
commitbacf238ab67cbbd3039e63469d3056e2d483a4eb (patch)
treea9718a997b791bf1ae7e52fa0a7ddd6c1fe72d7e /.htaccess_phpbb
parent455f681260a4e02e36024ea030f36f807fef8733 (diff)
downloadboards-bacf238ab67cbbd3039e63469d3056e2d483a4eb.tar.gz
boards-bacf238ab67cbbd3039e63469d3056e2d483a4eb.tar.bz2
boards-bacf238ab67cbbd3039e63469d3056e2d483a4eb.zip
handle look up by migrate_post_id, add rewrite rules for phpBB
Diffstat (limited to '.htaccess_phpbb')
-rw-r--r--.htaccess_phpbb18
1 files changed, 18 insertions, 0 deletions
diff --git a/.htaccess_phpbb b/.htaccess_phpbb
new file mode 100644
index 0000000..0045a58
--- /dev/null
+++ b/.htaccess_phpbb
@@ -0,0 +1,18 @@
+<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]
+
+ # 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]
+</IfModule>