Jump to content
php.lv forumi

Recommended Posts

Posted

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ā )

Posted

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;
}

Posted (edited)

2easy, paldies, htaccess nostrādāja. :)

nācās ielikt tikai +FollowSymLinks vai kā tur un to ka pārmet :)

Edited by eT`

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...