I'm trying to prevent phpBB users from registering or login from phpBB.
Instead I want them to use /login and /register pages on my WP.
This can be achieved in several ways.
So you disabled registrations in phpBB, then you want that if an user try to access the registration page in phpBB, it is redirected to wp registration page, in the case he will try to access via direct phpBB url.
And you do not want users login in phpBB.
Disable registration in phpBB.
Then deactivate the fast login (maybe) that appear into index bottom, disabling into acp.
Then you could do via js, detecting onclick the event.
Yes via htaccess more secure ...
This is the easy way using htaccess:
Open .htaccess in phpBB, and where
Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]
immediately
BEFORE add this:
Code: Select all
RewriteCond %{QUERY_STRING} ^(.*)(mode=login&)(.*)?$
RewriteRule . https://subdomain.w3host.com/wordpress/wp-login.php [R,L]
Change
https://subdomain.w3host.com/wordpress/wp-login.php to point to where you need to be redirected
[quote]I'm trying to prevent phpBB users from registering or login from phpBB.
Instead I want them to use /login and /register pages on my WP.[/quote]
This can be achieved in several ways.
So you disabled registrations in phpBB, then you want that if an user try to access the registration page in phpBB, it is redirected to wp registration page, in the case he will try to access via direct phpBB url.
And you do not want users login in phpBB.
Disable registration in phpBB.
Then deactivate the fast login (maybe) that appear into index bottom, disabling into acp.
Then you could do via js, detecting onclick the event.
Yes via htaccess more secure ...
This is the easy way using htaccess:
[b]Open .htaccess in phpBB, and where[/b]
[code]RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L][/code]
immediately [b]BEFORE[/b] add this:
[code]RewriteCond %{QUERY_STRING} ^(.*)(mode=login&)(.*)?$
RewriteRule . https://subdomain.w3host.com/wordpress/wp-login.php [R,L][/code]
Change [c]https://subdomain.w3host.com/wordpress/wp-login.php[/c] to point to where you need to be redirected