Jump to content

Apache rewrite rule for changed url format


Recommended Posts

Hi everyone

 

I would like to change my url format from:

 

http://mysite.com/en/mycategory/12-my-product

 

to

 

http://mysite.com/en/mycategory/12/my-product

 

I know this might be a matter of taste but I think it looks better. I have found the option in the backoffice to do this and it works great.

 

The problem is that changing this will break existing links and I know nothing about Apache and rewrite rule. Basically I think that it is enough to look for "/number-" like "/12-" and replace it with /12/

 

Can anyone assist with advice on how this rule must look like, has anyone tested it, using it?

 

Many thanks

Link to comment
Share on other sites

×
×
  • Create New...