1
BeautyBrains
How to - Redirect Login and Registrations

I have a .ca and and .com site, I would like to redirect the .ca logins and registrations to the .com site... modify header.php?

Could you please tell me where to put the code for this and
what is the code for this.

Thanks

2
mboyden
Re: How to - Redirect Login and Registrations
  • 2010/6/14 15:21

  • mboyden

  • Moderator

  • Posts: 484

  • Since: 2005/3/9 1


Several questions....

Are the .ca and .com sites different?

What separates the two from the other?

What version of XOOPS are you using?

Are you using the profiles module (or legacy smartprofiles)?

Is this a multi-site XOOPS?

Depending on exactly what differences there are and separation you need, you could simply the .htaccess file to redirect the register.php and user.php pages to the other site.
Pessimists see difficulty in opportunity; Optimists see opportunity in difficulty. --W Churchill

XOOPS: Latest | Debug | Hosting and Web Development

3
BeautyBrains
Re: How to - Redirect Login and Registrations

the .ca was created simply for the search engines; it has a front page and no modules; at face value it looks exactly the same as the .com

It uses xoops 2.4.4 so whatever mods came with the installation, that is what is there. the main one (.com) is xoops 2.3

it is basically a doorway page

4
BeautyBrains
Re: How to - Redirect Login and Registrations

Hi Guys,
I solved the problem as follows:

(1) Your Xoops install folder/themes/your theme/xotpl/userbar.html

(2) Open the userbar.html page using notepad, delete all text and replace it with this

<div id="xo-userbar">
 + <a href="<{xoAppUrl /register.php}>" class="register" title="Register">Register</a>
</div>

(3) Now go to
Your xoops install folder/register.php

(4) Open the register.php using notepad, delete all text and replace with this

<div id="xo-userbar">
 + <a href="<{xoAppUrl /register.php}>" class="register" title="Register">Register</a>
</div>

See the results here
http://CaribbeanAncestry.ca/forums/ = doorway - no login - yes register
http://CaribbeanAncestry.com/forums/ = main site - yes login and register

Thanks for the feedback

5
BeautyBrains
Re: How to - Redirect Login and Registrations

I forgot to mention, if you use the above changes your doorway site will have all its registrations automatically redirected to the main site. Therefore all registrations will go to the main site's database, or, whatever link you put in the redirect text.

Login

Who's Online

229 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 229


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits