Code:
#
# This file was generated by Inveo Magic SEO URLs for ZenCart 6.2.00 - http://www.inveostore.com/
# 2006 - 2020, (c) Inveo s.r.o.
#
<IfModule negotiation_module>
Options -MultiViews
</IfModule>
<IfModule rewrite_module>
RewriteEngine On
RewriteBase /
### REQUIRE SSL ###
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301]
### REQUIRE SUBDOMAIN ###
RewriteCond %{HTTP_HOST} !^www.pezcollectors.com [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} !^dev\. [NC]
RewriteRule ^.*$ https://www.pezcollectors.com/$1 [R=301]
#Working around additional parameter - this one can not be unset in some cases by Core
RewriteCond %{QUERY_STRING} ^(.*)&buy=now
RewriteRule ^index.php$ https://www.pezcollectors.com/index.php?%1 [R=301,L]
#Stopping Rewrite for Performance reasons (if you are using custom Rewrite Rules remove this line)
RewriteRule ^.*(\.css|\.js|\.jpg|\.gif|\.png)$ - [L]
#shippinginfo - shipping
RewriteRule ^shipping$ index.php?main_page=shippinginfo [L,QSA]
#privacy - privacy
RewriteRule ^privacy$ index.php?main_page=privacy [L,QSA]
#conditions - conditions
RewriteRule ^conditions$ index.php?main_page=conditions [L,QSA]
#contact_us - contact us
RewriteRule ^contact\-us$ index.php?main_page=contact_us [L,QSA]
#site_map - sitemap
RewriteRule ^sitemap$ index.php?main_page=site_map [L,QSA]
#gv_faq - gv_faq - items
RewriteCond %{QUERY_STRING} ^item=([0-9]+)
RewriteRule ^gift\-certificate-faq$ index.php?main_page=gv_faq&faq_item=%1 [L,QSA]
#gv_faq - gv_faq
RewriteRule ^gift\-certificate-faq$ index.php?main_page=gv_faq [L,QSA]
#discount_coupon - discount_coupon
RewriteRule ^discount\-coupon$ index.php?main_page=discount_coupon [L,QSA]
#unsubscribe - unsubscribe
RewriteRule ^newsletter\-unsubscribe$ index.php?main_page=unsubscribe [L,QSA]
# page_X - static pages
RewriteRule ^page\-([0-9]+)$ index.php?main_page=page_$1 [L,QSA]
#logoff - log off
RewriteRule ^log\-off$ index.php?main_page=logoff [L,QSA]
#index
RewriteRule ^$ index.php?main_page=index [L,QSA]
#index - categories - pagination, ordering and filtering
RewriteCond %{QUERY_STRING} ^alpha-filter=([0-9]+)
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&cPath=$5&sort=$7&alpha_filter_id=%1&page=$6 [L,QSA]
#index - categories - pagination, ordering and manufacturers
RewriteCond %{QUERY_STRING} ^manufacturer=([0-9]+)
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&cPath=$5&sort=$7&filter_id=%1&page=$6 [L,QSA]
#index - categories - pagination, ordering, filtering and manufacturers
RewriteCond %{QUERY_STRING} ^manufacturer=([0-9]+)&alpha-filter=([0-9]+)
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&cPath=$5&sort=$7&filter_id=%1&alpha_filter_id=%2&page=$6 [L,QSA]
#index - categories
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/$ index.php?main_page=index&cPath=$5&sort=20a [L,QSA]
#index - categories - pagination
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)$ index.php?main_page=index&cPath=$5&sort=20a&page=$6 [L,QSA]
#index - categories - pagination and ordering
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,9}([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&cPath=$5&sort=$7&page=$6 [L,QSA]
#index - categories and no category - product info - buy now
RewriteCond %{QUERY_STRING} ^buy=now
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,10}([a-z0-9\-]*)\-([\:0-9a-z]*)$ index.php?main_page=index&products_id=$5&action=buy_now [L,QSA]
#index - categories and no category - product info - notify
RewriteCond %{QUERY_STRING} ^notify=add
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,10}([a-z0-9\-]*)\-([\:0-9a-z]*)$ index.php?main_page=product_info&products_id=$5&action=notify [L,QSA]
#index - categories and no category - product info - notify remove
RewriteCond %{QUERY_STRING} ^notify=remove
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,10}([a-z0-9\-]*)\-([\:0-9a-z]*)$ index.php?main_page=product_info&products_id=$5&action=notify_remove [L,QSA]
#index - categories and no category - product info
RewriteRule ^(([a-z0-9\-]*)\-([0-9]+)/){0,10}([a-z0-9\-]*)\-([\:0-9a-z]*)$ index.php?main_page=product_info&products_id=$5 [L,QSA]
#index - manufacturers
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/$ index.php?main_page=index&manufacturers_id=$2 [L,QSA]
#index - manufacturers - pagination
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)$ index.php?main_page=index&manufacturers_id=$2&sort=20a&page=$3 [L,QSA]
#index - manufacturers - pagination, ordering and filtering
RewriteCond %{QUERY_STRING} ^alpha-filter=([0-9]+)
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&manufacturers_id=$2&sort=$4&alpha_filter_id=%1&page=$3 [L,QSA]
#index - manufacturers - pagination, ordering and categories
RewriteCond %{QUERY_STRING} ^category=([0-9]+)
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&manufacturers_id=$2&sort=$4&filter_id=%1&page=$3 [L,QSA]
#index - manufacturers - pagination, ordering, filtering and categories
RewriteCond %{QUERY_STRING} ^category=([0-9]+)&alpha-filter=([0-9]+)
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&manufacturers_id=$2&sort=$4&filter_id=%1&alpha_filter_id=%2&page=$3 [L,QSA]
#index - manufacturers - pagination and ordering
RewriteRule ^manufacturers/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)\-([a-z0-9]{2,3})$ index.php?main_page=index&manufacturers_id=$2&sort=$4&page=$3 [L,QSA]
#specials - specials
RewriteRule ^specials/$ index.php?main_page=specials [L,QSA]
#specials - specials - pagination
RewriteRule ^specials/index\-([0-9]+)$ index.php?main_page=specials&page=$1 [L,QSA]
#reviews - reviews
RewriteRule ^reviews/$ index.php?main_page=reviews [L,QSA]
#reviews - reviews - pagination
RewriteRule ^reviews/index\-([0-9]+)$ index.php?main_page=reviews&page=$1 [L,QSA]
#product_reviews - product reviews - notify
RewriteCond %{QUERY_STRING} ^notify=add
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/$ index.php?main_page=product_reviews&products_id=$2&action=notify [L,QSA]
#product_reviews - product reviews - notify remove
RewriteCond %{QUERY_STRING} ^notify=remove
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/$ index.php?main_page=product_reviews&products_id=$2&action=notify_remove [L,QSA]
#product_reviews - product reviews
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/$ index.php?main_page=product_reviews&products_id=$2 [L,QSA]
#product_reviews - product reviews - pagination - notify
RewriteCond %{QUERY_STRING} ^notify=add
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)$ index.php?main_page=product_reviews&products_id=$2&page=$3&action=notify [L,QSA]
#product_reviews - product reviews - pagination - notify remove
RewriteCond %{QUERY_STRING} ^notify=remove
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)$ index.php?main_page=product_reviews&products_id=$2&page=$3&action=notify_remove [L,QSA]
#product_reviews - product reviews - pagination
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/index\-([0-9]+)$ index.php?main_page=product_reviews&products_id=$2&page=$3 [L,QSA]
#product_reviews_info - product reviews info notify
RewriteCond %{QUERY_STRING} ^notify=add
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/customers\-review\-([0-9]+)$ index.php?main_page=product_reviews_info&products_id=$2&reviews_id=$3&action=notify [L,QSA]
#product_reviews_info - product reviews info notify remove
RewriteCond %{QUERY_STRING} ^notify=remove
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/customers\-review\-([0-9]+)$ index.php?main_page=product_reviews_info&products_id=$2&reviews_id=$3&action=notify_remove [L,QSA]
#product_reviews_info - product reviews info
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/customers\-review\-([0-9]+)$ index.php?main_page=product_reviews_info&products_id=$2&reviews_id=$3 [L,QSA]
#product_reviews_write - product reviews write notify
RewriteCond %{QUERY_STRING} ^notify=add
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/write\-customers\-review$ index.php?main_page=product_reviews_write&products_id=$2&action=notify [L,QSA]
#product_reviews_write - product reviews write notify remove
RewriteCond %{QUERY_STRING} ^notify=remove
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/write\-customers\-review$ index.php?main_page=product_reviews_write&products_id=$2&action=notify_remove [L,QSA]
#product_reviews_write - product reviews write
RewriteRule ^reviews/([a-z0-9\-]*)\-([0-9]+)/write\-customers\-review$ index.php?main_page=product_reviews_write&products_id=$2 [L,QSA]
#products_new - products new - ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^new\-products/$ index.php?main_page=products_new&disp_order=%1 [L,QSA]
#products_new - products new
RewriteRule ^new\-products/$ index.php?main_page=products_new [L,QSA]
#products_new - products new - pagination and ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^new\-products/index\-([0-9]+)$ index.php?main_page=products_new&disp_order=%1&page=$1 [L,QSA]
#products_new - products new - pagination
RewriteRule ^new\-products/index\-([0-9]+)$ index.php?main_page=products_new&page=$1 [L,QSA]
#products_all - products all - ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^all\-products/$ index.php?main_page=products_all&disp_order=%1 [L,QSA]
#products_all - products all
RewriteRule ^all\-products/$ index.php?main_page=products_all [L,QSA]
#products_all - products all - pagination and ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^all\-products/index\-([0-9]+)$ index.php?main_page=products_all&disp_order=%1&page=$1 [L,QSA]
#products_all - products all - pagination
RewriteRule ^all\-products/index\-([0-9]+)$ index.php?main_page=products_all&page=$1 [L,QSA]
#featured_products - featured products - ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^featured\-products/$ index.php?main_page=featured_products&disp_order=%1 [L,QSA]
#featured_products - featured products
RewriteRule ^featured\-products/$ index.php?main_page=featured_products [L,QSA]
#featured_products - featured products - pagination and ordering
RewriteCond %{QUERY_STRING} ^display-order=([0-9]+)
RewriteRule ^featured\-products/index\-([0-9]+)$ index.php?main_page=featured_products&disp_order=%1&page=$1 [L,QSA]
#featured_products - featured products - pagination
RewriteRule ^featured\-products/index\-([0-9]+)$ index.php?main_page=featured_products&page=$1 [L,QSA]
#login - login
RewriteRule ^account/login$ index.php?main_page=login [L,QSA]
#login - create
RewriteRule ^account/create$ index.php?main_page=create_account [L,QSA]
#login - create successful
RewriteRule ^account/created\-successful$ index.php?main_page=create_account_success [L,QSA]
#password_forgotten - password forgotten
RewriteRule ^account/send\-password$ index.php?main_page=password_forgotten [L,QSA]
#account - account
RewriteRule ^account/$ index.php?main_page=account [L,QSA]
#account_edit - account - edit
RewriteRule ^account/edit$ index.php?main_page=account_edit [L,QSA]
#account_password - account - change password
RewriteRule ^account/change\-password$ index.php?main_page=account_password [L,QSA]
#account_history - account - history
RewriteRule ^account/orders/$ index.php?main_page=account_history [L,QSA]
#account_history_info - account - history info
RewriteRule ^account/orders/view\-([0-9]+)$ index.php?main_page=account_history_info&order_id=$1 [L,QSA]
#address_book - account - address book
RewriteRule ^account/address\-book/$ index.php?main_page=address_book [L,QSA]
#address_book_process - account - address book add
RewriteRule ^account/address\-book/add\-address$ index.php?main_page=address_book_process [L,QSA]
#address_book_process - account - address book edit & delete
RewriteCond %{QUERY_STRING} ^action=(edit|delete)
RewriteRule ^account/address\-book/entry\-([0-9]+)$ index.php?main_page=address_book_process&%1=$1 [L,QSA]
#account_newsletters - account - newsletters
RewriteRule ^account/newsletters/$ index.php?main_page=account_newsletters [L,QSA]
#account_notifications - account - notifications
RewriteRule ^account/notifications/$ index.php?main_page=account_notifications [L,QSA]
#shopping_cart - shopping cart
RewriteRule ^shopping\-cart/$ index.php?main_page=shopping_cart [L,QSA]
#checkout_shipping - checkout shipping
RewriteRule ^checkout/shipping$ index.php?main_page=checkout_shipping [L,QSA]
#advanced_search - advanced search
RewriteRule ^search/$ index.php?main_page=advanced_search [L,QSA]
#advanced_search_result - advanced search result
RewriteRule ^search/results$ index.php?main_page=advanced_search_result [L,QSA]
#page - ezpages - chapters
RewriteRule ^pages/([a-z0-9\-]*)\-([0-9]+)\-([0-9]+)\.html$ index.php?main_page=page&id=$2&pos=v&chapter=$3 [L,QSA]
#page - ezpages
RewriteRule ^pages/([a-z0-9\-]*)\-([0-9]+)\.html$ index.php?main_page=page&id=$2&pos=v&chapter=0 [L,QSA]
</IfModule>
### ALTERNATE EXPIRES CACHING ###
Header unset ETag
FileETag None
ExpiresActive On
ExpiresDefault "access plus 8 days"
ExpiresByType image/x-icon "access plus 30 days"
ExpiresByType application/x-javascript A2592000
ExpiresByType text/css "access plus 8 days"
ExpiresByType text/html "access plus 24 hours"
ExpiresByType image/gif "access plus 30 days"
ExpiresByType image/png "access plus 30 days"
ExpiresByType image/jpg "access plus 30 days"
ExpiresByType image/jpeg "access plus 30 days"
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=2592000, public"
</FilesMatch>
### GZIP COMPRESSION ###
#AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xhtml+xml
#AddOutputFilterByType DEFLATE application/x-javascript application/javascript text/javascript text/css
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
<Files ".ht*">
deny from all
</Files>
#ErrorDocument 404 http://www.pezcollectors.com/
Bookmarks