[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_sample

Zen Cart 源代码 htaccess_sample




下载文件

文件名: htaccess_sample
文件类型: Unknown文件
文件大小: 1.95 KiB
MD5: 2a9940446b140c93c74d9431b7f72d4e

htaccess_sample - 关闭高亮
  1. ##### NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
  2.  
  3. Options +FollowSymLinks
  4. RewriteEngine On
  5. RewriteBase /shop/
  6.  
  7. # From Ultimate SEO URLs
  8. RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
  9. RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
  10. RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
  11. RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
  12. RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
  13. RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
  14. RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
  15.  
  16. # For Open Operations Info Manager
  17. RewriteRule ^(.*)-i-([0-9]+).html$ index\.php?main_page=info_manager&pages_id=$2&%{QUERY_STRING} [L]
  18.  
  19. # For dreamscape's News & Articles Manager
  20. RewriteRule ^news/?$ index\.php?main_page=news&%{QUERY_STRING} [L]
  21. RewriteRule ^news/rss.xml$ index\.php?main_page=news_rss&%{QUERY_STRING} [L]
  22. RewriteRule ^news/archive/?$ index\.php?main_page=news_archive&%{QUERY_STRING} [L]
  23. RewriteRule ^news/([0-9]{4})-([0-9]{2})-([0-9]{2}).html$ index\.php?main_page=news&date=$1-$2-$3&%{QUERY_STRING} [L]
  24. RewriteRule ^news/archive/([0-9]{4})-([0-9]{2}).html$ index\.php?main_page=news_archive&date=$1-$2&%{QUERY_STRING} [L]
  25. RewriteRule ^news/(.*)-a-([0-9]+)-comments.html$ index\.php?main_page=news_comments&article_id=$2&%{QUERY_STRING} [L]
  26. RewriteRule ^news/(.*)-a-([0-9]+).html$ index\.php?main_page=news_article&article_id=$2&%{QUERY_STRING} [L]
  27.  
  28. # All other pages
  29. # Don't rewrite real files or directories
  30. RewriteCond %{REQUEST_FILENAME} !-f [NC]
  31. RewriteCond %{REQUEST_FILENAME} !-d
  32. RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
  33.  


cron