View Single Post
  #18  
Old 02-10-2010, 06:10 AM
powerchaos's Avatar
powerchaos powerchaos is offline
WebMaster
 
Join Date: May 2008
Posts: 130
Gender: Male
Credits: 12,967
powerchaos
Send a message via AIM to powerchaos Send a message via MSN to powerchaos
Default 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
Reply With Quote