mod_rewrite?

    Date: 09/21/04 (Apache)    Keywords: php, 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]

    Source: http://www.livejournal.com/community/apache/11984.html

« Ubuntu PHP4 Question || Quick question... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home