Forums / Install & configuration / URL rewrite for the registration page
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
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
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)
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