jam Posted January 24, 2007 Report Share Posted January 24, 2007 Sveiki. Pardon, ka jautājums par htaccess php forumā. Ir nepieciešamība ar htaccess nodrošināt šādu lietu. Redirektēt visus, izņemto manu IP uz citu direktoriju/index failu. Tas vajadzīgs lapas maintenance vajadzībām, kad vajadzīgs lapā veikt labojumus, citiem rādīt tipa "sorry, site is down form maintenance", bet no manas IP piekļūt kā vienmēr. Liels paldies! Link to comment Share on other sites More sharing options...
andrisp Posted January 24, 2007 Report Share Posted January 24, 2007 To pašu var panākt arī ar php, ja nu kas: if ($_SERVER['REMOTE_ADDR'] != 'tava_ip') { die('Bla bla bla'); } Link to comment Share on other sites More sharing options...
blackhalt Posted January 24, 2007 Report Share Posted January 24, 2007 Laikam: deny from all allow from localhost ErrorDocument 403 /zzz.php ErrorDocument 401 /zzz.php Link to comment Share on other sites More sharing options...
Recommended Posts