Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 02-02-2010, 08:36 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,312
Quillink
Default User login dependant on if there's a "www." in the url

I've noticed that if you're logged in (on my site and other adoptable sites using this script) that if you log in on "www.site.com/etc" and then switch over to just "site.com/etc" they are logged out. Is there any way around this? Such as automatic redirection to "www.site" or something else?

Thanks in advance. ;)
Reply With Quote
  #2  
Old 02-02-2010, 11:29 AM
Arianna's Avatar
Arianna Arianna is offline
Dev Staff
 
Join Date: Sep 2009
Posts: 334
Gender: Female
Credits: 21,353
Arianna will become famous soon enough
Default RE: User login dependant on if there's a "www." in the url

This is because the cookies are set this way.
Perhaps on when it sets the cookies, have it set it both ways? Some people like www, some don't, so you can't win by redirection, I think... :P
Reply With Quote
  #3  
Old 02-02-2010, 03:11 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,779
BMR777 is on a distinguished road
Default RE: User login dependant on if there's a "www." in the url

That's odd. The cookies should work for both versions. I'll look into it.
Reply With Quote
  #4  
Old 02-03-2010, 02:57 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,957
fadillzzz is an unknown quantity at this point
Default RE: User login dependant on if there's a "www." in the url

put this in your .htaccess to redirect all non www to www
Code:
Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^yoursite.com [NC] 
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
Reply With Quote
  #5  
Old 02-03-2010, 06:10 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,312
Quillink
Default RE: User login dependant on if there's a "www." in the url

Hmm doesnt seam to work. :\

I don't need to enable htaccess anywhere, do I?
Reply With Quote
  #6  
Old 02-03-2010, 12:17 PM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,957
fadillzzz is an unknown quantity at this point
Default RE: User login dependant on if there's a "www." in the url

have you change the yoursite.com to your domain?

If it still doesn't work, try to put this code in your .htaccess instead
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain\.com$
RewriteRule (.*) http://www.yourdomain.com/$1 [R=301,L]
Reply With Quote
  #7  
Old 02-03-2010, 09:38 PM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,312
Quillink
Default RE: User login dependant on if there's a "www." in the url

This is what my .htaccess looks like with your code:

Code:
RewriteEngine On

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^get/([0-9]+).gif$ /adoptables200/siggy.php?id=$1 [L]
It doesn't seem to be working. Is there anything incorrect in the extract above?
Reply With Quote
  #8  
Old 02-04-2010, 02:07 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,957
fadillzzz is an unknown quantity at this point
Default RE: User login dependant on if there's a "www." in the url

You forgot to put a "^" before arvyre\.com$ on line 3
Code:
RewriteEngine On

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

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^get/([0-9]+).gif$ /adoptables200/siggy.php?id=$1 [L]
oh and I just realized on your registration page the allowed length value for the password and password confirmation box are not the same...shouldn't you be fixing it?
Reply With Quote
  #9  
Old 02-04-2010, 02:16 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 11,312
Quillink
Default RE: User login dependant on if there's a "www." in the url

Quote:
Originally Posted by fadillzzz
oh and I just realized on your registration page the allowed length value for the password and password confirmation box are not the same...shouldn't you be fixing it?
Hmm that's interesting, I haven't edited that text area at all..? Thank's for pointing it out. :D

The .htaccess still doesn't seem to work. :S Any other ideas?
Reply With Quote
  #10  
Old 02-04-2010, 02:21 AM
fadillzzz fadillzzz is offline
Dev Staff
 
Join Date: Jan 2010
Posts: 501
Gender: Male
Credits: 32,957
fadillzzz is an unknown quantity at this point
Default RE: User login dependant on if there's a "www." in the url

hmm...this should be a lot easier if you configure it throught cPanel...don't you have cPanel access to your website?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't do first login Mortain Questions and Supports 17 11-13-2015 07:56 PM
Login Box Hedgen Questions and Supports 1 11-05-2012 12:13 PM
Login Failed rosepose Questions and Supports 5 05-27-2009 07:32 PM
Login Failed Hiddenzbu Questions and Supports 2 05-23-2009 12:52 PM
login fix 12345 Questions and Supports 0 03-13-2009 02:03 PM


All times are GMT -5. The time now is 07:27 AM.

Currently Active Users: 9626 (0 members and 9626 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636