1
jandrews
Double log in problems
  • 2005/7/11 7:29

  • jandrews

  • Just popping in

  • Posts: 31

  • Since: 2005/6/5 9


Hi.

Here's an annoying problem that has to be solved. A site that I am working on has a problem and users are fed up.

When my users are arriving to site (EX.http://www.website.com)

They log in and then receive an incorrect log in message.

The user is then redirected to athttp://website.com/

registration page.

But when the user just logs in athttp://website.com/ (without the www.), everything works fine.

How can this problem be fixed. The www. prefix does not allow users to go onto the site.

2
CeBepuH
Re: Double log in problems
  • 2005/7/11 7:37

  • CeBepuH

  • Not too shy to talk

  • Posts: 128

  • Since: 2002/6/10


Read the tip here:

http://xoops-tips.com/news-article.storyid-86.htm

And then you can have a look at those too:

http://xoops-tips.com/news-article.storyid-65.htm

http://xoops-tips.com/news-article.storyid-92.htm
Humans need fantasy to be humans. To be the place where the fallen angel meets the rising ape.

3
jandrews
Re: Double log in problems
  • 2005/7/11 7:50

  • jandrews

  • Just popping in

  • Posts: 31

  • Since: 2005/6/5 9


Hi.

Thank you very much.

I changed the .htaccess page to

RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.yoursite\.com
RewriteRule (.*)http://www.yoursite.com/$1 [R=301,L]

and it fixed everything.

I would have never have come to that solution myself.

CHEERS!!!

4
bluenova
Re: Double log in problems

Did you include the 'www' in the virtual path in mainfile.php?

Login

Who's Online

250 user(s) are online (157 user(s) are browsing Support Forums)


Members: 0


Guests: 250


more...

Donat-O-Meter

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

Latest GitHub Commits