사이트를 제작하여 서비스하다보면 다른 URL에서 각자의 값을 갖는 세션값으로 인해 곤혹을 치루는 경우가 있습니다.대부분 서버에서 고의적인 url변경으로 인해 여러개의 도메인(서브도메인 및 www 있는 경우와 없는 경우등)을 하나로 정리해야할 경우가 있습니다.
naver.com으로 치던 www.naver.com으로 치던 혹든 다른 도메인이 중복되어 있을 경우 www.nhn.com 이런 것을www.naver.com으로 주소창의 URL을 변경시켜주는 초간단 방법입니다.
if($_SERVER[‘HTTP_HOST’] == “naver.com” || $_SERVER[‘HTTP_HOST’] == www.nhn.com || $_SERVER[‘HTTP_HOST’] == “nhn.com”) header(“Location: http://www.naver.com/”);
위와 같이 PHP소스가 시작하는 제일 첫부분에 넣어주면 작동합니다.
헤더이기때문에 반드시 제일 상단에 넣어줘야 정상작동한다는거 유의하시기 바라며, 이는 php에서 기본적으로 제공하는 $_SERVER 전역변수를 이용한 로직입니다.
어떻게 접근하시던간에 주소창에는 무조건 www.naver.com이 뜹니다. ㅋㅋ
fury over nfl’s crackdown on player’s 9We have to see. Vikings got fake ray bans
off to a 3 0 start despite losing quarterback Teddy Bridgewater just before the regular season started, followed by running back Adrian Peterson and left tackle Matt Kalil.. 15. Tennessee Titans (acquired from Los Angeles)Despite finishing with the worst record in the league at 3 13, Cheap NFL Jerseys
Tennessee decided to remove the interm tag on Mike Malarkey and make him the permanent head coach. Ive cheap football jerseys china
got a 69 VW fasty and that model almost always has vinal seats so after all these years almost every seat is cracked and what not. Is there anything i can put on that to preserve the vinal so i don have to worry about it until i get it reupholstered. Abercrombie A cheap jerseys long ralph lauren factory store time, nike huarache who jerseys from china sawed, pondering ralph lauren uk all zapatillas nike know, oakley who coach purses can burberry sale not converse chucks deceive cheap jerseys oakley outlet
anyone. Vans schuhe Learn ray ban sunglasses outlet together, michael kors bags play knicks jerseys together p90x workout schedule also. A six time all pro and a former league MVP. He has been charged with child abuse Peterson has been fake oakleys
activated by the vikings will not play. Many of us have lost sight of the social connectedness sharing a meal can offer.3. Mindless eatingCan you recall all the meals you ate yesterday? Possibly yes, but not with accuracy. How much does a sport photographer make who is part of the staff depends greatly on the employer. Generally, a good staff reporter can make $35,000 and up a year.. Don think this is as difficult as maybe some people he had some problems. I think he been fined five times. Cassel was one of the biggest surprises of the 2008 NFL season stepping in for the injured Tom Brady and hockey jerseys
throwing for 3693 yards with 21 TD’s and just 11 INT’s. The numbers are much more impressive when you consider that Cassel had not started a game since High School when he found himself thrust into the limelight. The oakley outlet
decision not to award substantial damages left the league without enough revenue to continue, and the USFL never played another game after the 1985 season, finally shuttering its operations in 1987. In the nearly 25 years since the case was decided, no other football league has ever posed a serious threat to the NFL’s dominance of the professional football market in the United States. Pick A Draft Date With in person drafts, you can select any date, time location your league prefers. If you’re doing an online draft, you’ll have to pick from your site’s available time slots. This way, players are clear on what they can put in their bodies. This is also a good way to educate players on the dangers of the substances they may be tempted to use.