[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.73 KiB
MD5: d81eeb58c24e87f1c8c7c99ef3d17857

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 ^(.*)-c-([^/])/(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$4&cpath=$2 [L]
  9. RewriteRule ^(.*)-p-(.*).html$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
  10.  
  11. # Normal Ultimate SEO URLs (disable if using ADD_PRODUCT_CAT)
  12. #RewriteRule ^(.*)-c-(.*).html$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
  13.  
  14. # ADD_PRODUCT_CAT Ultimate SEO URLs (disable if not using ADD_PRODUCT_CAT)
  15. RewriteRule ^(.*)-c-(.*).html$ $1-c-$2/ [R=301,L]
  16. RewriteRule ^(.*)-c-([^/]+)$ %{REQUEST_URI}/ [R=301,L]
  17. RewriteRule ^(.*)-c-([^/]+)/$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
  18.  
  19. RewriteRule ^(.*)-m-([0-9]+).html$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
  20. RewriteRule ^(.*)-pi-([0-9]+).html$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
  21. RewriteRule ^(.*)-pr-([0-9]+).html$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
  22. RewriteRule ^(.*)-pri-([0-9]+).html$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
  23. RewriteRule ^(.*)-ezp-([0-9]+).html$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
  24.  
  25. # All other pages
  26. # Don't rewrite real files or directories
  27. RewriteCond %{REQUEST_FILENAME} !-f [OR]
  28. RewriteCond %{REQUEST_FILENAME} !-d
  29. RewriteRule ^(.*).html$ index\.php?main_page=$1&%{QUERY_STRING} [L]
  30.  
  31. # Handle when a resource is not found (404 Error Page)
  32. RewriteCond %{REQUEST_FILENAME} !-f
  33. RewriteCond %{REQUEST_FILENAME} !-d
  34. RewriteRule ^(.*)$ index\.php?main_page=page_not_found&%{QUERY_STRING} [L]


cron