Developer forum

Forum » Ecommerce - Standard features » friendly url rewrite issue.

friendly url rewrite issue.

Peter Leleulya
Peter Leleulya
Reply

Hi guys,

I have a product detail page with a variant dropdown.
On select of a variant you get redirected to the product detail page of that specific variant.

Nothing strange there ....

But our customer noticed some urls result into a 404 page not found.

The links which are called are the parametrized urls like /Default.aspx?ID=1&GroupID=2&ProductID=3&VariantID=4

For the links that result into a 404, when I add &Purge=true the page shows.
When I don't it gets redirected to a friendly url, but then it can't be found.

I noticed that when this happens, there is a slash in the product name.
But it does not happen to EVERY url with a slash.

I can't figure out why some work and some don't
It might have something to do with the total length of the friendly url and the dw url functionality cutting the string somewhere in combination with slashes.
But what can I do about it ...

The products are screws, nails, nuts and bolds etc. and sometimes have measurements in their name line M6/M8/M10.

For example the pull down for this product: https://www.hoenderdaal-fasteners.nl/nl-nl/producten/moeren/assortimenten/systec-assortimentskoffer 
Some variant pages are reachable, others not.
I have to understand why this happens, so we can come up with a solution.
Removing the slashes from the title are not an option, I think ... 

 

SYSTEC ASS.KOFFER RINGEN VZ DIVERS DIN125A/9021/127B (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9278
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-ringen-vz-divers-din125a/9021/12

SYSTEC ASS.KOFFER TAP- & ZESKANTBOUT VZ DIN933/931 M12 (1 Koffer)
Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9282
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-tap-zeskantbout-vz-din933/93

SYSTEC ASS.KOFFER TAP- & ZESKANTBOUT VZ DIN933/931 M10 (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9281
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-tap-zeskantbout-vz-din933/931-1

SYSTEC ASS.KOFFER TAPBOUT VZ DIN933 M6/M8/M10 (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9283
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-tapbout-vz-din933-m6/m8/m10

SYSTEC ASS.KOFFER BINNENZESKANTBOUT VZ DIN912 M6/M8/M10 (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9284
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-binnenzeskantbout-vz-din912-m6/

SYSTEC ASS.KOFFER MOEREN VZ DIVERS DIN934/985/315-AM/1587 (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9285
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-moeren-vz-divers-din934/985/315

SYSTEC ASS.KOFFER TAPBOUT RVS-A2 DIN933 M6/M8/M10 (1 Koffer)
/Default.aspx?ID=80&GroupID=57&ProductID=8960.60.02&VariantID=9291
producten/moeren/assortimenten/systec-assortimentskoffer/systec-ass-koffer-tapbout-rvs-a2-din933-m6/m8/m10

Does anyone have the knowledge of the exact science behind this ?? 
All-In-One - Business SOL: 2 version 9.14.1


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

I might see something in the code that endsup giving this mistake in some occasions.

The fix is easy though - adding custom replacement rules into the section - see below:

So the value added is: '/:-;&:-;#:-'

  • '/' is replaced with '-'
  • '&' is replaced with '-'
  • '#' is replaced with '-'

Add them in the settings section and you should be running again.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum