Daedalus (justindustin) wrote in apache,


Hi all, hope someone can give me insight here. I've got an install of phpbb on my site, and I want to use a custom, outside signup page for new users. By default phpbb directs users to /installdir/profile.php?mode=register&agreed=true when they click on the appropriate link. Would mod_rewrite be the answer to redirecting someone who hits that link? A traditional alias or redirect does not seem to work, as apache throws an error about the config, and it's not based on the page itself, but the url parameters being passed. I know I could just as easily hack up the php code for the forum, but I'd prefer this non-invasive method, plus it would catch anyone trying to circumvent a simple redirect within the code. Any hints?

Oh, here's my current rewrite ruleset:
RewriteCond %{QUERY_STRING} ^(mode=register&agreed=true.*) [NC]
RewriteRule ^/forum/profile\.php$1 /account.php [L]
  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.