<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]

    # 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 .* /phpbb/index.php?migrate_post_id=%1   [R]

    # old phpBB topics
    RewriteCond %{REQUEST_URI} viewtopic.php
    RewriteCond %{QUERY_STRING} .*t=([0-9]*).*
    RewriteRule .* /phpbb/index.php?migrate_topic_id=%1   [R]

    # old phpBB board
    RewriteCond %{REQUEST_URI} viewforum.php
    RewriteCond %{QUERY_STRING} .*f=([0-9]*).*
    RewriteRule .* /phpbb/index.php?migrate_board_id=%1   [R]
</IfModule>
