[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 .htaccess

Zen Cart 源代码 .htaccess




下载文件

文件名: .htaccess
文件类型: Apache HTACCESS文件
文件大小: 1.97 KiB
MD5: 0b4db8b40358831ce1feab58b6944ec9

.htaccess - 关闭高亮
  1. #
  2. # @copyright Copyright 2003-2010 Zen Cart Development Team
  3. # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  4. # @version $Id: .htaccess 16111 2010-04-29 22:39:02Z drbyte $
  5. #
  6.  
  7. AuthType Basic
  8. AuthName "No access"
  9. AuthUserFile .htnopasswd
  10. AuthGroupFile /dev/null
  11. #Require valid-user
  12.  
  13.  
  14. ###############################
  15. #
  16. # This is used with Apache WebServers
  17. #
  18. # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
  19. # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
  20. # Will also prevent people from seeing what is in the dir. and any sub-directories
  21. #
  22. # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
  23. # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
  24. # Example:
  25. #<Directory "/usr/local/apache/htdocs">
  26. #  AllowOverride Limit Options Indexes
  27. #</Directory>
  28. ###############################
  29.  
  30. # deny *everything*
  31. <FilesMatch ".*">
  32.   Order Allow,Deny
  33.   Deny from all
  34. </FilesMatch>
  35.  
  36. # but now allow just *certain* necessary files:
  37. <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA)$">
  38.   Order Allow,Deny
  39.   Allow from all
  40.  
  41.   # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
  42.   # (just uncomment the next 2 lines by removing the '#'):
  43. #  ForceType application/octet-stream
  44. #  Header set Content-Disposition attachment
  45. </FilesMatch>
  46.  
  47. IndexIgnore */*
  48.  
  49.  
  50. ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
  51. # OPTIONS -Indexes -ExecCGI
  52.