eT` Posted February 4, 2010 Report Posted February 4, 2010 Tātad savu adresi lietoju bez www. bet ja kāds dodas ar www. tad nesanāk ielogoties, jo headerī formai action ir http://filmam.lv ( bez www. ) kā var uzlikt, ja lietotājs dodas lapā ar www. tad www. automātiski noņemas ( redirektē vai kā ) Quote
waplet Posted February 4, 2010 Report Posted February 4, 2010 header("Location: ".$_SERVER['HTTP_REFERER']); Quote
codez Posted February 4, 2010 Report Posted February 4, 2010 uzliec linku: /header.php?action=login strādās no abām. Quote
Pentiums Posted February 5, 2010 Report Posted February 5, 2010 Waplet, esi padomājis par to, kas būs ja kāds ienāks lapā no citas lapas? Izmanto šo pašā lapas augšā: $set['domens'] = 'manalapa.lv'; //Bez WWW if($_SERVER['HTTP_HOST'] == 'www.'.$set['domens']) { header('Location: http://'.$set['domens'].$_SERVER['REQUEST_URI']); exit; } Quote
Kavacky Posted February 5, 2010 Report Posted February 5, 2010 Normāls joks sanāk, pieņemam tikai tos, kuri adresi prot ierakstīt no galvas. Quote
2easy Posted February 5, 2010 Report Posted February 5, 2010 http://forums.b2evolution.net/viewtopic.php?p=90770 Quote
eT` Posted February 5, 2010 Author Report Posted February 5, 2010 (edited) 2easy, paldies, htaccess nostrādāja. :) nācās ielikt tikai +FollowSymLinks vai kā tur un to ka pārmet :) Edited February 5, 2010 by eT` Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.