× Here you can get community support related to ReDJ.

merging slightly different urls

More
5 years 8 months ago #6817 by X-Bit
merging slightly different urls was created by X-Bit
Hello Luigi!

I have almost identical urls which should be merged to the same pattern.

- /perlen/themen-tags/tag/xxx.html
|
| and
|
- /themen-tags/tag/yyy.html?start=zzz
|
| to
|
----> /alle-tags-anzeigen/xxx or yyy.html (?start=zzz when it existed on original query)

xxx / yyy / zzz are variables.

Thanks for a quick help!

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

More
5 years 8 months ago - 5 years 8 months ago #6823 by admin
Replied by admin on topic merging slightly different urls
This should work:
From URL: /themen-tags/tag/\.html
To URL: {scheme}://{siteurl}/alle-tags-anzeigen/{preg_match 1}/\/tag\/(.*)\.html/i{/preg_match}
Request only: true (checke)
Last edit: 5 years 8 months ago by admin.

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

More
5 years 8 months ago #6826 by X-Bit
Replied by X-Bit on topic merging slightly different urls
Hello and thank you for your appreciated help!

But, strangely, this doesn't even work a bit...

I disabled the rules I created before and just inserted the one you suggested.

http://prntscr.com/khp81k

When trying the first case (/perlen/themen-tags/tag/xxx.html):

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

Which is the same. Somehow it does not change the URL


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

Which, again, does not change anything on the source URL.
I problably explained the case somewhat wrong and I would be very grateful if you could have another look at it.

Thanks for your help!

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

More
5 years 8 months ago #6831 by X-Bit
Replied by X-Bit on topic merging slightly different urls
I am somehow relived, that the above case seems to be more complicated than I thought. Until now I didn't find a working solution.

Could you please try to have another look at it?

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

More
5 years 7 months ago #6842 by admin
Replied by admin on topic merging slightly different urls
From the results it seems the rule is not working at all. Can you check if the rule's hits countes is still zero?

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

More
5 years 7 months ago #6851 by X-Bit
Replied by X-Bit on topic merging slightly different urls
Yes, its zero: prntscr.com/koeb6z

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

Time to create page: 0.123 seconds