diff --git a/examples/.htaccess b/examples/.htaccess index 9b57faa..0aae9c1 100644 --- a/examples/.htaccess +++ b/examples/.htaccess @@ -2,25 +2,29 @@ Header set Access-Control-Allow-Origin "*" - + Deny from all php_value session.gc_maxlifetime 604800 Options -MultiViews -RewriteEngine On Options -Indexes -RewriteBase / + + RewriteEngine On + RewriteBase / -RewriteCond %{REQUEST_FILENAME} !-d -RewriteCond %{REQUEST_FILENAME} !-f -RewriteCond %{REQUEST_FILENAME} !-l + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-l -RewriteCond $1 !^(index\.php|custom|uploads|uploads_thumbs|assets|robots\.txt) -RewriteRule ^(.+)$ /examples/index.php?url=$1 [QSA,L] + RewriteCond $1 !^(index\.php|custom|uploads|uploads_thumbs|assets|robots\.txt) + RewriteRule ^(.+)$ /examples/index.php?url=$1 [QSA,L] + RewriteRule ^Vendor/.*\.php$ - [F,L] + -RedirectMatch 404 /\.git -RewriteRule ^Vendor/.*\.php$ - [F,L] \ No newline at end of file +# +# RedirectMatch 404 /\.git # use FilesMatch instead, see above +#