URL ReWrite

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18123

Hi Nicolas,
can you show me how to modify the file router.php to obtain this?

from this

www.nellopoli.com/hidesign/it/catalogo/p...a/CATEGORY_PATHWAY-0

to

www.nellopoli.com/hidesign/it/catalogo/p...id-197/diamond-sofa/

Thank you!

Last edit: 13 years 5 months ago by Nello.

Please Log in or Create an account to join the conversation.

  • Posts: 82868
  • Thank you received: 13375
  • MODERATOR
13 years 5 months ago #18148

For the category pathway, you could just add that code in beginning of the function HikashopBuildRoute:
if(isset($query)&& empty($query)){
unset( $query );
}

For the name, it's more complicated...Please try to change the line:
$segments[] = $name.':'.$value;

to:
if($name=='name'){
$segments[] = $value;
}else{
$segments[] = $name.':'.$value;
}

and add the line:
else $vars = $name;
after the line:
elseif($i == 2) $vars = $name;

Please Log in or Create an account to join the conversation.

  • Posts: 251
  • Thank you received: 2
13 years 5 months ago #18176

It works well for me.

Thank you so much!

You're absolutely great!!!

Please Log in or Create an account to join the conversation.

Time to create page: 0.058 seconds
Powered by Kunena Forum