URL rewrite for the registration page

Author Message

Anthony M.

Thursday 12 March 2009 9:25:24 am

Hi,
I have created a registration page (the url is 'http://mysite.com/user/register') and i would like to go to this page when i write so 'http://mysite.com/'

is it possible ? with the config files of ezpublish or with the virtual host ?

Thanks a lot

Anthony

Jean-Yves Zinsou

Friday 13 March 2009 1:45:54 am

Hi there the way to do this is to set it as index page

in [SiteSettings] in site.ini.append.php
# Which page to show when the root index (/) is accessed
IndexPage=/content/view/full/2/

Be aware that this registration page becomes your home page, and even already registered users will arrive on this page !!

Make sure it is a good idea and fits your need ...

HTH

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

André R.

Friday 13 March 2009 4:46:47 am

Also make sure you setup cronjobs for deleting drafts and internal drafts, or they will pile up when people start entering your site..

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

Jean-Yves Zinsou

Friday 13 March 2009 8:10:56 am

Hi André,

Can you explain or link me to some doc explaining why it is important to delete drafts and internal drafts in this case using register page ?
I was not aware of this.
Thanx

Jey

Do Androids Dream of Electric Sheep?
I dream of eZpubliSheep....
------------------------------------------------------------------------
http://www.alma.fr

Anthony M.

Friday 13 March 2009 8:22:24 am

thanks a lot but it doesn't work...
i wrote that in the site.ini.append.php :

IndexPage=/user/register

but when i write so http://mysite.com/, i'm not rediriged on the registration page...

(I have the register and login in the same page)

Anthony

Yannick Komotir

Monday 16 March 2009 8:55:27 am

Hi,

you can proceed as you have said Jean Yves, and in your node 2, do a redirect to register / login

<|- Software Engineer @ eZ Publish developpers -|>
@ http://twitter.com/yannixk

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 11:35:12
Script start
Timing: Jan 18 2025 11:35:12
Module start 'layout'
Timing: Jan 18 2025 11:35:12
Module start 'content'
Timing: Jan 18 2025 11:35:13
Module end 'content'
Timing: Jan 18 2025 11:35:13
Script end

Main resources:

Total runtime0.9892 sec
Peak memory usage4,096.0000 KB
Database Queries70

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0098 592.0000152.6406
Module start 'layout' 0.00990.0032 744.640639.4922
Module start 'content' 0.01300.9746 784.1328652.1328
Module end 'content' 0.98760.0016 1,436.265616.1406
Script end 0.9892  1,452.4063 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3427160.0002
Check MTime0.00140.1448160.0001
Mysql Total
Database connection0.00120.123710.0012
Mysqli_queries0.912592.2388700.0130
Looping result0.00080.0843680.0000
Template Total0.933494.420.4667
Template load0.00190.196520.0010
Template processing0.931594.160420.4657
Template load and register function0.00030.026610.0003
states
state_id_array0.01251.265710.0125
state_identifier_array0.00180.178720.0009
Override
Cache load0.00170.1717380.0000
Sytem overhead
Fetch class attribute can translate value0.00090.087140.0002
Fetch class attribute name0.00180.183490.0002
XML
Image XML parsing0.00200.202140.0005
class_abstraction
Instantiating content class attribute0.00000.0021100.0000
General
dbfile0.00110.1141290.0000
String conversion0.00000.001040.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs