eT` Posted February 4, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
waplet Posted February 4, 2010 Report Share Posted February 4, 2010 header("Location: ".$_SERVER['HTTP_REFERER']); Quote Link to comment Share on other sites More sharing options...
codez Posted February 4, 2010 Report Share Posted February 4, 2010 uzliec linku: /header.php?action=login strādās no abām. Quote Link to comment Share on other sites More sharing options...
eT` Posted February 5, 2010 Author Report Share Posted February 5, 2010 uzliku nestrādā :/ Quote Link to comment Share on other sites More sharing options...
Pentiums Posted February 5, 2010 Report Share 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 Link to comment Share on other sites More sharing options...
Kavacky Posted February 5, 2010 Report Share Posted February 5, 2010 Normāls joks sanāk, pieņemam tikai tos, kuri adresi prot ierakstīt no galvas. Quote Link to comment Share on other sites More sharing options...
2easy Posted February 5, 2010 Report Share Posted February 5, 2010 http://forums.b2evolution.net/viewtopic.php?p=90770 Quote Link to comment Share on other sites More sharing options...
eT` Posted February 5, 2010 Author Report Share 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 Link to comment Share on other sites More sharing options...
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.