Deny all Folder Exclude single folder HTACCESS

PUBLIC HTML ROOT FOLDER HTACCESS CODE

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond %{SERVER_PORT} 80
   RewriteCond %{REQUEST_URI} /verify
   RewriteCond %{REQUEST_URI} !(checkacheck/verify)
   RewriteRule  /verify  - [F,L]

   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
 
 
 
 
</IfModule>
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

IN WHICH FOLDER WANTS TO ALLOW HTACCESS CODE

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>

Popular posts from this blog

Cant use dump() function in twig files or how to enable debug in opencart twig or print_r alternate use dump() in opencart 3.0

maximum execution time error when importing sql data file since php.ini has been already set max execution time 3000

SEO Custom URL in Opencart