renathy Posted March 30, 2009 Report Share Posted March 30, 2009 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? Quote Link to comment Share on other sites More sharing options...
max Posted March 30, 2009 Report Share Posted March 30, 2009 (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 March 30, 2009 by max Quote Link to comment Share on other sites More sharing options...
renathy Posted April 3, 2009 Author Report Share Posted April 3, 2009 Ok. Paldies. Pamēģināšu. Iepriekš nekad neesmu rakstījusi htaccess failus. Quote Link to comment Share on other sites More sharing options...
Delfins Posted April 3, 2009 Report Share Posted April 3, 2009 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. Quote Link to comment Share on other sites More sharing options...
renathy Posted April 4, 2009 Author Report Share Posted April 4, 2009 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 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.