Mysidia Adoptables Support Forum

Mysidia Adoptables Support Forum (http://www.mysidiaadoptables.com/forum/index.php)
-   Questions and Supports (http://www.mysidiaadoptables.com/forum/forumdisplay.php?f=18)
-   -   User login dependant on if there's a "www." in the url (http://www.mysidiaadoptables.com/forum/showthread.php?t=1296)

Quillink 02-04-2010 04:08 AM

RE: User login dependant on if there's a "www." in the url
 
Unfortunately not. I'll look around on the administration I do have though.

fadillzzz 02-04-2010 04:31 AM

RE: User login dependant on if there's a "www." in the url
 
hmm...I'll try to get some info from my friend about this .htaccess problem, cause I just create a test site and its' working fine with the .htaccess I gave you

but anyways, as long as you have a redirection manager on whatever administration panel you're using, I'm sure it should to be easy actually since it's usually have a feature to automaticly redirect non WWW to WWW URL

who's your host anyway?

EDIT: just noticed another problem with your site, the sign out button leads to a 404 error page. I have to type in the logout URL manually to log out from the site

Quillink 02-04-2010 06:20 AM

RE: User login dependant on if there's a "www." in the url
 
Fixed again, thanks.

Still looking for the place in my panel to tell it to redirect, though...

fadillzzz 02-04-2010 06:36 AM

RE: User login dependant on if there's a "www." in the url
 
ok, try this code

Code:

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

if it doesn't work, try this one
Code:

RewriteEngine on

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


Quillink 02-05-2010 02:28 AM

RE: User login dependant on if there's a "www." in the url
 
Ugh none of them want to work. :S

Don't worry about it though, nobody's even noticed yet. And I'm sure they wouldn't mind re-logging in anyway. Thanks for your time of course. :)

fadillzzz 02-05-2010 06:14 AM

RE: User login dependant on if there's a "www." in the url
 
you're welcome...
sorry couldn't help you though...
but you can always ask your host about this problem, I'm sure they can help you

Quillink 02-05-2010 07:37 AM

RE: User login dependant on if there's a "www." in the url
 
Yes, true. :o

Don't know why I never thought of that lol.

powerchaos 02-10-2010 06:10 AM

RE: User login dependant on if there's a "www." in the url
 
its strange
the htacces rewrite rule does not works for you ??

how does your pet script works then ?? because it seems then that your .htacces is not supported :S

normal it should work fine , but what you can do to is putting a small php code into the header so it auto redirects if it got a certain value

that will helps a little

here is the code
PHP Code:

if($_SERVER['PHP_SELF']!= ('www.yourwebsite.com')){ header("Location:http://www.yourwebsite.com"); } 

i cant promise that it will works like it should be
because it going redirect all websites that doesnt come from that site to that site

i use it for a register page on my vps to prevend direct acces , but i point them away from that register page so i dont know if this going work like it shoul be
but feel free to give it a try :D

Greets From PowerChaos


All times are GMT -5. The time now is 08:38 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.