Forums / Install & configuration / Redirect to subdomain after login

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Redirect to subdomain after login

Author Message

Michael Loibl

Friday 06 May 2011 7:18:03 pm

Hi @ all,

i have a little problem: how can i redirect to a subdomain after login?
when a user click on blog.mydomain.tld/user/login - it is redirect to www..mydomain.tld/user/login

this is done with a rewrite condition...

<code>

RewriteCond %{HTTP_HOST} !^(www|admin).([^.]+)\.([^.]+)$ [NC]
RewriteRule ^/user/*(.*)$ http://www.mydomain.tld/user/$1 [R=301,L]

</code>

all solutions are welcome!...

Robin Muilwijk

Friday 06 May 2011 11:55:53 pm

Hi Michael,

what about the solution used in the following topic: http://share.ez.no/forums/developer/redirect-after-login/(language)/eng-GB?

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk