/[drupal]/contributions/modules/phpbb/phpbb.htaccess
ViewVC logotype

Diff of /contributions/modules/phpbb/phpbb.htaccess

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.9, Tue Oct 24 22:48:30 2006 UTC revision 1.10, Sat Feb 10 19:38:49 2007 UTC
# Line 1  Line 1 
1  <IfModule mod_rewrite.c>  <IfModule mod_rewrite.c>
2    RewriteEngine on    RewriteEngine on
3    # Modify the RewriteBase if you are using Drupal in a subdirectory and    # Modify the RewriteBase if you are using Drupal in a subdirectory and
4    # the rewrite rules are not working properly. This code assumes    # the rewrite rules are not working properly.
         # phpBB2 is the name of the subdirectory that phpBB lives in.  
5    #RewriteBase /    #RewriteBase /
6    
7    RewriteRule ^quote_(.*)$ posting.php?mode=quote&p=$1 [L]    RewriteRule ^quote_(.*)$ posting.php?mode=quote&p=$1 [L]
# Line 11  Line 10 
10    RewriteRule ^search_newposts$ search.php?search_id=newposts [L]    RewriteRule ^search_newposts$ search.php?search_id=newposts [L]
11    RewriteRule ^search_ego$ search.php?search_id=egosearch [L]    RewriteRule ^search_ego$ search.php?search_id=egosearch [L]
12    RewriteRule ^unwatch_topic_(.*)$ viewtopic.php?unwatch=topic&t=$1 [L]    RewriteRule ^unwatch_topic_(.*)$ viewtopic.php?unwatch=topic&t=$1 [L]
   RewriteRule ^viewtopic_(.*)$ viewtopic.php?topic&t=$1 [L]  
13    
14    RewriteCond %{QUERY_STRING} ^mode=viewprofile&u=(.*)$    RewriteCond %{QUERY_STRING} ^mode=viewprofile&u=(.*)$
15    RewriteRule ^profile.php(.*)$ ../user/%1 [L]    RewriteRule ^profile.php(.*)$ ../user/%1 [L]
# Line 26  Line 24 
24    RewriteRule ^login.php(.*)$ ../index.php?q=logout [L]    RewriteRule ^login.php(.*)$ ../index.php?q=logout [L]
25    
26    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=newtopic&f=(.*)$    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=newtopic&f=(.*)$
27    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2/postnew_forum_%1 [L]    RewriteRule ^login.php(.*)$ ../phpbb/postnew_forum_%1 [L]
28    
29    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=reply&t=(.*)$    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=reply&t=(.*)$
30    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2/replyto_topic_%1 [L]    RewriteRule ^login.php(.*)$ ../phpbb/replyto_topic_%1 [L]
31    
32    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=quote&p=(.*)$    RewriteCond %{QUERY_STRING} ^redirect=posting.php&mode=quote&p=(.*)$
33    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2/quote_%1 [L]    RewriteRule ^login.php(.*)$ ../phpbb/quote_%1 [L]
34    
35    RewriteCond %{QUERY_STRING} ^redirect=search.php&search_id=newposts(.*)$    RewriteCond %{QUERY_STRING} ^redirect=search.php&search_id=newposts(.*)$
36    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2/search_newposts [L]    RewriteRule ^login.php(.*)$ ../phpbb/search_newposts [L]
37    
38    RewriteCond %{QUERY_STRING} ^redirect=search.php&search_id=egosearch(.*)$    RewriteCond %{QUERY_STRING} ^redirect=search.php&search_id=egosearch(.*)$
39    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2/search_ego [L]    RewriteRule ^login.php(.*)$ ../phpbb/search_ego [L]
40    
41    RewriteCond %{QUERY_STRING} ^redirect=viewtopic.php&t=(.*)&unwatch=topic$    RewriteCond %{QUERY_STRING} ^redirect=viewtopic.php&t=(.*)&unwatch=topic$
42    RewriteRule ^login.php(.*)$ /user/login?destination=phpBB2/unwatch_topic_%1 [L]    RewriteRule ^login.php(.*)$ /phpbb/forum/unwatch_topic_%1 [L]
43    
44    RewriteCond %{QUERY_STRING} ^redirect=viewtopic.php&t=(.*)$    RewriteCond %{HTTP_REFERER} !^(.*)redirect=admin/index\.php(.*)$ [NC]
   RewriteRule ^login.php(.*)$ /user/login?destination=forum/viewtopic_%1 [L]  
   
   
         # Catches logins to the administration panel  
         RewriteCond %{HTTP_REFERER} !^(.*)redirect=admin/index\.php(.*)$ [NC]  
45    RewriteCond %{QUERY_STRING} !^(.*)redirect=admin/index\.php(.*)$ [NC]    RewriteCond %{QUERY_STRING} !^(.*)redirect=admin/index\.php(.*)$ [NC]
46    RewriteRule ^login.php(.*)$ ../user/login?destination=phpBB2 [L]    RewriteRule ^login.php(.*)$ ../phpbb [L]
47    
48    RewriteCond %{QUERY_STRING} ^mode=post&u=(.*)$    RewriteCond %{QUERY_STRING} ^mode=post&u=(.*)$
49    RewriteRule ^privmsg.php(.*)$ ../privatemsg/msgto/%1 [L]    RewriteRule ^privmsg.php(.*)$ ../privatemsg/msgto/%1 [L]

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.2