-1

I have changed below url's to Login & registration instead of default

So URL will be

http://www.domain.com/en/login-user
http://www.domain.com/en/register-user

I have multiple language so added language prefix.

I would like to redirect it to node via .htaccess

I tried

RewriteRule ^/login-user http://www.domain.com/en/test

But not working

  • RewriteRule ^/login-user /en/test [L,R=302] to redirect – Oulalahakabu May 3 '18 at 6:21
  • This seems to be a very bad direction: You want to redirect the "login-user" to "test" ? – ssibal May 3 '18 at 15:24
  • Have you tried the redirect module? drupal.org/project/redirect – Rawdreeg May 3 '18 at 16:01
  • Yes @ssibal u r right – Test May 7 '18 at 2:07
  • So you say: AFTER successfully logging in or registering you would like to redirect them to a certain node page? (because this one is not clear to me) – ssibal May 7 '18 at 6:31
0

Works fine :)

  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

  RewriteRule /login-user /test [L,R=307]
  RewriteRule /register-user /test [L,R=307]
| improve this answer | |

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