Pereiti prie turinio

.htaccess failų blokavimas


Rekomenduojami pranešimai

Sveiki,

 

Įsirašiau OctoberCMS, pagal nutylėjimą jis blokuoja visus failus išskyrus index.php. Mano atvėju reikėtų duoti leidimą /mail.php failui.

Pabandžiau užkomentuoti blokavimo taisyklę, bet tai nepadeda, užėjus į domenas.lt/mail.php vis tiek gaunu pranešimą "Puslapis nerastas". Gal esate susidūrę su šia situacija? :)

 

.htaccess failas:


<IfModule mod_rewrite.c>

   <IfModule mod_negotiation.c>
       Options -MultiViews
   </IfModule>

   RewriteEngine On

   ##
   ## You may need to uncomment the following line for some hosting environments,
   ## if you have installed to a subdirectory, enter the name here also.
   ##
   # RewriteBase /

   ##
   ## Uncomment following lines to force HTTPS.
   ##
   RewriteCond %{HTTPS} off
   RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]

   ##
   ## Black listed folders
   ##
   RewriteRule ^bootstrap/.* index.php [L,NC]
   RewriteRule ^config/.* index.php [L,NC]
   RewriteRule ^vendor/.* index.php [L,NC]
   RewriteRule ^storage/cms/.* index.php [L,NC]
   RewriteRule ^storage/logs/.* index.php [L,NC]
   RewriteRule ^storage/framework/.* index.php [L,NC]
   RewriteRule ^storage/temp/protected/.* index.php [L,NC]
   RewriteRule ^storage/app/uploads/protected/.* index.php [L,NC]

   ##
   ## White listed folders
   ##
   RewriteCond %{REQUEST_FILENAME} -f
   RewriteCond %{REQUEST_FILENAME} !/.well-known/*
   RewriteCond %{REQUEST_FILENAME} !/storage/app/uploads/.*
   RewriteCond %{REQUEST_FILENAME} !/storage/app/media/.*
   RewriteCond %{REQUEST_FILENAME} !/storage/temp/public/.*
   RewriteCond %{REQUEST_FILENAME} !/themes/.*/(assets|resources)/.*
   RewriteCond %{REQUEST_FILENAME} !/plugins/.*/(assets|resources)/.*
   RewriteCond %{REQUEST_FILENAME} !/modules/.*/(assets|resources)/.*
   RewriteRule !^index.php index.php [L,NC]

   ##
   ## Block all PHP files, except index
   ##
   ##RewriteCond %{REQUEST_FILENAME} -f
   ##RewriteCond %{REQUEST_FILENAME} \.php$
   ##RewriteRule !^index.php index.php [L,NC]

   ##
   ## Standard routes
   ##
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteRule ^ index.php [L]

</IfModule>

 

Nuoroda į pranešimą
Dalintis kituose puslapiuose

Prisijunkite prie diskusijos

Jūs galite rašyti dabar, o registruotis vėliau. Jeigu turite paskyrą, prisijunkite dabar, kad rašytumėte iš savo paskyros.

Svečias
Parašykite atsakymą...

×   Įdėta kaip raiškusis tekstas.   Atkurti formatavimą

  Only 75 emoji are allowed.

×   Nuorodos turinys įdėtas automatiškai.   Rodyti kaip įprastą nuorodą

×   Jūsų anksčiau įrašytas turinys buvo atkurtas.   Išvalyti redaktorių

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

Įkraunama...
  • Dabar naršo   0 narių

    Nei vienas registruotas narys šiuo metu nežiūri šio puslapio.

×
×
  • Pasirinkite naujai kuriamo turinio tipą...