I am moving a current ecommerce site (Joomla 1.5 + Virtuemart) from fundamental router.php SEF to Yagendoo router wordpress plugin (Virtuemart Search engine optimization SEF Links Professional). The issue is, the 2 create different Web addresses and I'd rather not lose current entries, and so i considered developing a mod_rewrite 301 rule.

router.php url

http://hostname/it/home/category/<category ID>/<category name>

Yagendoo router url

http://hostname/it/<category name>

I have develop: RewriteRule ^it/home/category/(.*)$ it/$ [R=301,L] that is almost correct, but nonetheless provides me with the course number prior to the title. Does anybody understand how I'm able to take away the number but nonetheless keep whatever comes later on?

Thanks ahead of time for just about any help.

Try something similar to this.

RewriteRule ^it/home/category/([^/]+)/([^/]+)$ it/$2 [R=301,L]

I didn't chek it, but it's pretty simple to personalize it for the reasons. The primary idea is storing and in various variables($1, $2).