Skip to main content

URL ReWrite

More
15 years 3 months ago - 15 years 3 months ago #18123 by Nello
URL ReWrite was created by Nello
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: 15 years 3 months ago by Nello.

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

More
15 years 3 months ago #18148 by nicolas
Replied by nicolas on topic Re: URL ReWrite
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.

More
15 years 3 months ago #18176 by Nello
Replied by Nello on topic Re: URL ReWrite
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.145 seconds
Powered by Kunena Forum