In order to prevent unwanted member registration I have set up a redirect from the member/register page using the following code in the .htaccess file:

Redirect 301 /member/register http://sitexyz.com/

This should be working but it is not and returns the following url and still displays the registration page.


Am I missing something in the redirect?

1 Answer 1


Try using:

RewriteRule ^member/register$ http://sitexyz.com/ [R=301,NC,L]

and make sure to place it before any index.php rewrite rules in your root htaccess file.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.