Jump to content

How change patters of url


Recommended Posts

Hi,

 

I tried change patterns of url of prestashop in Preferences>SEO and URL in section "URL Format". And for example I want change format of CMS url:

 

original:content/category/{id}-{rewrite}

new format: contentblablabla/category/{id}-{rewrite}

 

And yes, prestashop save this change but don't work with new url, only works with original url.

 

And if i change dispacher file:

 

 

'cms_category_rule' => array(

'controller' => 'cms',

'rule' => 'content/category/{id}-{rewrite}',

'keywords' => array(

'id' => array('regexp' => '[0-9]+', 'param' => 'id_cms_category'),

'rewrite' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),

'meta_keywords' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),

'meta_title' => array('regexp' => '[_a-zA-Z0-9-\pL]*'),

),

),

 

then works! Is it a bug? Somebody can change pattern url from BackOffice?

 

 

Thanks!

 

UPDATE:

Solution: http://www.4webs.es/blog/bug-prestashop-1-5-url-amigables-solucion-en-la-1-5-3-1

Edited by tamara_gl (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...