× Here you can get community support related to ReDJ.

merging slightly different urls

More
6 years 2 months ago - 6 years 2 months ago #6852 by admin
Replied by admin on topic merging slightly different urls
The From URL is wrong:
From URL: /perlen/themen-tags/tag/\.html

This is the right one:
From URL: /perlen/themen-tags/tag/.*\.html

Now the hits counter should increase.

Kind regards,
Luigi
Last edit: 6 years 2 months ago by admin.

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

More
6 years 2 months ago #6853 by X-Bit
Replied by X-Bit on topic merging slightly different urls
Hi!

Ok, I changed the FROM URL, please see prntscr.com/kossmo

Now the first case works:

| Original URL > www.lehrmittelperlen.net/perlen/themen-tags/tag/Comics.html
|
| expected outcome > www.lehrmittelperlen.net/alle-tags-anzeigen/Comics.html

The second case still doesn't work:

When trying the second case (/themen-tags/tag/yyy.html?start=zzz)

| Original URL > www.lehrmittelperlen.net/themen-tags/denksport.html?start=200
|
| expected outcome > www.lehrmittelperlen.net/alle-tags-anzeigen/denksport.html?start=200
|
| received outcome > www.lehrmittelperlen.net/themen-tags/denksport.html?start=200

Could you refine the the FROM rule or would it need a second one?

Thank you for your pacience and appreciated help!

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

More
6 years 2 months ago - 6 years 2 months ago #6856 by admin
Replied by admin on topic merging slightly different urls
Just try to remove /perlen from the current rule:
From URL: /themen-tags/tag/.*\.html

BTW, re-reading your original post I realized this should have been the right answer since the beginning. Sorry, my fault.

Kind regards,
Luigi
Last edit: 6 years 2 months ago by admin.

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

More
6 years 2 months ago - 6 years 2 months ago #6857 by X-Bit
Replied by X-Bit on topic merging slightly different urls
Hello!

I am so sorry to still bother you... but this was a "no joy" as well.

The problem persists, the first case works with or without "/perlen" the second case still not working as expected.

| Original URL > www.lehrmittelperlen.net/themen-tags/denksport.html?start=200
|
| expected outcome > www.lehrmittelperlen.net/alle-tags-anzeigen/denksport.html?start=200
|
| received outcome > www.lehrmittelperlen.net/themen-tags/denksport.html?start=200

It doesn't count up on this case either.

Actual situation:

From URL * : /themen-tags/tag/.*\.html

To URL * : {scheme}://{siteurl}/alle-tags-anzeigen/{preg_match 1}/\/tag\/(.*)\.html/i{/preg_match}

Redirect : 301

Request Only : YES

Decode URL : YES

It seems the problem is, that in the first case there is the "tag" part and in the second there isn't. So the "From URL" doesn't get triggerd in the second case.

If you would like access to the site, please let me know!
Last edit: 6 years 2 months ago by X-Bit.

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

More
6 years 2 months ago #6861 by X-Bit
Replied by X-Bit on topic merging slightly different urls
Any ideas how to get this working would be very appreciated!

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

More
6 years 2 months ago #6865 by admin
Replied by admin on topic merging slightly different urls
Sorry for delay. The second URL doesn't not contain the /tag/ part so it requires a new different rule:
From URL: /themen-tags/.*\.html
To URL: {scheme}://{siteurl}/alle-tags-anzeigen/{preg_match 1}/\/themen-tags\/(.*)\.html/i{/preg_match}
Skip: /themen-tags/tag/
Request only: true (checked)

In this case you need to add also the skip part to avoid it also matches with the first type of URL (I don't like to rely on the rule's order).

Kind rergards
Luigi

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

Time to create page: 0.175 seconds