Jump to content
php.lv forumi

Recommended Posts

Posted

Kādam jābūt htaccess faila saturam, lai publiskie faili atrastos mapē public, bet pie visiem pārējiem failiem, kas ir ārpus šīs mapes nevarētu piekļūt?

Posted (edited)

Iemet publiskajaa direktorijaa .htaccess failu ar "allow from all", bet parent direktorijaa .htaccess ar "deny from all"

Vai arii peec nokluseejuma uzliec deny from all un tur, kur vajag - tur allow from all. Visaadi var sakombineet, atkariigs no situaacijas.

Edited by max
Posted
Vai arii peec nokluseejuma uzliec deny from all

nedrīkst paļauties uz defaulto serv konfigu. Ja grib paslēpt, tad jāiemet visur tur kur vajag.

Posted

Es ieliku public direktorijā allow from all, bet pārējās - deny from all. It kā strādā,

 

Cits jautājums - man teiksim directory root ir folderis AAA. Tur iekšā ir folderis pubilc.

Man vajaga, lai automātiski viss redirektētos uz foldera public index.php failu.

 

Teiksim tagad esa rakstu localhost/public/index.php, bet vajadzētu localhost/index.php

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...