News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Migrated from J1.5 V1 to J2.5 V2.6

Started by alikon2, May 05, 2016, 05:41:17 AM

Previous topic - Next topic

alikon2


Jumbo!

You need to create RewriteRule (in .htaccess is using Apache) so that your old urls resolve to the new url.


Example:

RewriteRule ^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$   index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=$1&virtuemart_category_id=$2  [NC,R=301,L]


If you use the above rule then all requests made to any url in this format -

http://xxx.ru/shop.html?page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id={{product_id}}&category_id={{category_id}}

will be redirected (301) to -

http://xxx.ru/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id={{product_id}}&virtuemart_category_id={{category_id}}


Similarly you will also have to create rules for other url formats.

alikon2

#2
Edited .htaccess
But when try to open old-style URL, start page opened ( http://xxx.ru/index.php) instead product page.

127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/shop.html -> shop.html
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$' to uri 'shop.html'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/shop.html -> shop.html
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'shop.html'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='base64_encode[^(]*\([^)]*\)' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='(<|%3C)([^s]*s)+cript.*(>|%3E)' [NC] => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='GLOBALS(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='_REQUEST(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/shop.html -> shop.html
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'shop.html'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (5) setting env variable 'HTTP_AUTHORIZATION' to ''
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/shop.html -> shop.html
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'shop.html'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='/shop.html' pattern='!^/index\.php' => matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='Z:/home/ast2/www/shop.html' pattern='!-f' => matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='Z:/home/ast2/www/shop.html' pattern='!-d' => matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (2) [perdir Z:/home/ast2/www/] rewrite 'shop.html' -> 'index.php'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (3) [perdir Z:/home/ast2/www/] add per-dir prefix: index.php -> Z:/home/ast2/www/index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (2) [perdir Z:/home/ast2/www/] strip document_root prefix: Z:/home/ast2/www/index.php -> /index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b1b0b8/initial] (1) [perdir Z:/home/ast2/www/] internal redirect with /index.php [INTERNAL REDIRECT]
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='base64_encode[^(]*\([^)]*\)' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='(<|%3C)([^s]*s)+cript.*(>|%3E)' [NC] => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='GLOBALS(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577' pattern='_REQUEST(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (5) setting env variable 'HTTP_AUTHORIZATION' to ''
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='/index.php' pattern='!^/index\.php' => not-matched
127.0.0.1 - - [05/May/2016:14:26:55 +0600] [ast2/sid#1edb6d0][rid#2b288b8/initial/redir#1] (1) [perdir Z:/home/ast2/www/] pass through Z:/home/ast2/www/index.php
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg -> images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$' to uri 'images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg'
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg -> images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg'
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='base64_encode[^(]*\([^)]*\)' => not-matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='(<|%3C)([^s]*s)+cript.*(>|%3E)' [NC] => not-matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='GLOBALS(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='_REQUEST(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg -> images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg'
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (5) setting env variable 'HTTP_AUTHORIZATION' to ''
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg -> images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg'
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg' pattern='!^/index\.php' => matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg' pattern='!-f' => not-matched
127.0.0.1 - - [05/May/2016:14:26:58 +0600] [ast2/sid#1edb6d0][rid#2b35120/initial] (1) [perdir Z:/home/ast2/www/] pass through Z:/home/ast2/www/images/stories/virtuemart/product/resized/_________________52294e8f06d23_150x150.jpg
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/favicon.ico -> favicon.ico
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$' to uri 'favicon.ico'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/favicon.ico -> favicon.ico
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'favicon.ico'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='base64_encode[^(]*\([^)]*\)' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='(<|%3C)([^s]*s)+cript.*(>|%3E)' [NC] => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='GLOBALS(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='_REQUEST(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/favicon.ico -> favicon.ico
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'favicon.ico'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (5) setting env variable 'HTTP_AUTHORIZATION' to ''
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/favicon.ico -> favicon.ico
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'favicon.ico'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='/favicon.ico' pattern='!^/index\.php' => matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='Z:/home/ast2/www/favicon.ico' pattern='!-f' => matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='Z:/home/ast2/www/favicon.ico' pattern='!-d' => matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (2) [perdir Z:/home/ast2/www/] rewrite 'favicon.ico' -> 'index.php'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (3) [perdir Z:/home/ast2/www/] add per-dir prefix: index.php -> Z:/home/ast2/www/index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (2) [perdir Z:/home/ast2/www/] strip document_root prefix: Z:/home/ast2/www/index.php -> /index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b270e8/initial] (1) [perdir Z:/home/ast2/www/] internal redirect with /index.php [INTERNAL REDIRECT]
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '^shop\.html?page=shop\.product_details&flypage=flypage\.tp-ecommerce\.tpl&product_id=([0-9]+)&category_id=([0-9]+)$' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='base64_encode[^(]*\([^)]*\)' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='(<|%3C)([^s]*s)+cript.*(>|%3E)' [NC] => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='GLOBALS(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='' pattern='_REQUEST(=|\[|\%[0-9A-Z]{0,2})' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (5) setting env variable 'HTTP_AUTHORIZATION' to ''
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] strip per-dir prefix: Z:/home/ast2/www/index.php -> index.php
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (3) [perdir Z:/home/ast2/www/] applying pattern '.*' to uri 'index.php'
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (4) [perdir Z:/home/ast2/www/] RewriteCond: input='/index.php' pattern='!^/index\.php' => not-matched
127.0.0.1 - - [05/May/2016:14:26:59 +0600] [ast2/sid#1edb6d0][rid#2b36348/initial/redir#1] (1) [perdir Z:/home/ast2/www/] pass through Z:/home/ast2/www/index.php


Try with category id:
RewriteRule ^shop\.html?page=shop\.browse&category_id=([0-9]+)$ index.php?option=com_virtuemart&view=category&virtuemart_category_id=$1 [NC,R=301,L]
But it don't work too.

Jumbo!

#3
 Try this -


RewriteCond  %{QUERY_STRING} ^page=shop\.product_details&flypage=flypage\.tp-ecommerce.tpl&product_id=([0-9]+)&category_id=([0-9]+)$
RewriteRule  (.*) http://xxx.ru/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=%1&virtuemart_category_id=%2  [NC,R=301,L]


This one is specifically written for your non-sef product pages

Example:

http://xxx.ru/shop.html?page=shop.product_details&flypage=flypage.tp-ecommerce.tpl&product_id=90034&category_id=577

will get redirected to -

http://xxx.ru/index.php?option=com_virtuemart&view=productdetails&virtuemart_product_id=90034&virtuemart_category_id=577


PRO

#4
this is not the best solution, especially since 1.1 had SO many url variations for the same product.


I built this redirect component from VM1 to 2 a long time ago.
https://forum.virtuemart.net/index.php?topic=97293.0


You can test it.
If it does not work for you. I actually have a way more advanced one I use on my site now. It also does "article ids", "item ids", and redirects NEW vm 2 product slugs after you delete a product
I can let you try it.