Jump to content
php.lv forumi

htaccess


renathy

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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