mod rewrite - mod_rewrite - redirect from old url to new url -


need professional help.

i have joomla 1.5 virtuemart

we change sef, , old url gone:(

old url:

http://example.com/126-name-group/147101.html

126-name-group - category name 126 - category id.

147101.html - product

147101 - id product

new url:

http://example.com/katalog/product/126/147101.html

katalog/product - constant

i'm not professional in mod_rewrite:(

thx help.

use rule on top of other rules in .htaccess

rewriterule ^([0-9]+)-[^/]+/([0-9]+\.html)$ /katalog/product/$1/$2 [r=301,l] 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -