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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 01:59:30
Script start
Timing: Jan 18 2025 01:59:30
Module start 'layout'
Timing: Jan 18 2025 01:59:30
Module start 'content'
Timing: Jan 18 2025 01:59:31
Module end 'content'
Timing: Jan 18 2025 01:59:31
Script end

Main resources:

Total runtime1.5373 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.0391152.6406
Module start 'layout' 0.00540.0032 740.679739.4844
Module start 'content' 0.00861.5270 780.1641529.0625
Module end 'content' 1.53570.0016 1,309.22668.1406
Script end 1.5372  1,317.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2188160.0002
Check MTime0.00150.0983160.0001
Mysql Total
Database connection0.00060.041510.0006
Mysqli_queries1.495097.2489550.0272
Looping result0.00060.0388530.0000
Template Total1.504197.820.7520
Template load0.00200.133120.0010
Template processing1.502097.707620.7510
Template load and register function0.00010.009310.0001
states
state_id_array0.00100.066410.0010
state_identifier_array0.00140.093620.0007
Override
Cache load0.00170.1103180.0001
Sytem overhead
Fetch class attribute can translate value0.00050.033320.0003
Fetch class attribute name0.00140.091930.0005
XML
Image XML parsing0.00060.039320.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00070.0459180.0000
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0005 secs